]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: format
authorEduardo San Martin Morote <posva13@gmail.com>
Tue, 19 Apr 2022 09:37:05 +0000 (11:37 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Tue, 19 Apr 2022 09:37:05 +0000 (11:37 +0200)
packages/docs/cookbook/testing.md

index d171388358038da7bdcee5ba2f332465d6d92ed5..e37c32102e22ac11fa91cff84fc7af80143bf007 100644 (file)
@@ -127,11 +127,13 @@ 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
+        },
+      }),
+    ],
   },
 })