]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
style: prettier
authorEduardo San Martin Morote <posva13@gmail.com>
Thu, 30 Sep 2021 08:20:56 +0000 (10:20 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Thu, 30 Sep 2021 08:20:56 +0000 (10:20 +0200)
packages/pinia/__tests__/store.spec.ts
packages/pinia/src/store.ts

index 88cbe4b924fd3873bfba69056601737bea941395..b62686baf6eea991a594119f6b0449375c4cbde3 100644 (file)
@@ -350,7 +350,7 @@ describe('Store', () => {
     const useMyStore = defineStore({
       id: 'arrowInit',
       state: () => new MyState(),
-    });
+    })
     useMyStore()
     expect('Detected constructor usage').toHaveBeenWarnedTimes(1)
   })
@@ -358,7 +358,7 @@ describe('Store', () => {
   it('does not warn when state is created with a plain object', () => {
     const useMyStore = defineStore({
       id: 'poInit',
-      state: () => ({ someValue: undefined })
+      state: () => ({ someValue: undefined }),
     })
     useMyStore()
     expect('Detected constructor usage').toHaveBeenWarnedTimes(0)
index f4f10e29da4a839c164a2fdc48baf5d900f0b333..7c28103843855761e9554d5582d486aaab8655e6 100644 (file)
@@ -681,7 +681,7 @@ function createSetupStore<
     !store.$state.constructor.toString().includes('[native code]')
   ) {
     console.warn(
-      `[🍍]: The "state" must be a plain object. It cannot be\n\tstate: () => new MyClass()` 
+      `[🍍]: The "state" must be a plain object. It cannot be\n\tstate: () => new MyClass()`
     )
   }