]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
chore: fixed missing curly braces (#1233) [skip ci]
authorJairo Blatt <jairoblattc@gmail.com>
Tue, 19 Apr 2022 09:35:56 +0000 (06:35 -0300)
committerGitHub <noreply@github.com>
Tue, 19 Apr 2022 09:35:56 +0000 (11:35 +0200)
Co-authored-by: Eduardo San Martin Morote <posva@users.noreply.github.com>
packages/docs/cookbook/testing.md

index 9252b5e8984399e90049843bb518f7b32c26c225..d171388358038da7bdcee5ba2f332465d6d92ed5 100644 (file)
@@ -127,12 +127,11 @@ Since the store is named _"counter"_, you need to add a matching object to `init
 // somewhere in your test
 const wrapper = mount(Counter, {
   global: {
-    plugins: [createTestingPinia(
-
-  initialState: {
-    counter: { n: 20 }, // start the counter at 20 instead of 0
-  },
-    )],
+    plugins: [createTestingPinia({
+      initialState: {
+        counter: { n: 20 }, // start the counter at 20 instead of 0
+      }
+    })],
   },
 })