]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
chore: comments typos
authorEduardo San Martin Morote <posva13@gmail.com>
Thu, 31 Dec 2020 14:27:39 +0000 (15:27 +0100)
committerEduardo San Martin Morote <posva13@gmail.com>
Thu, 31 Dec 2020 14:27:39 +0000 (15:27 +0100)
__tests__/actions.spec.ts
__tests__/getters.spec.ts
__tests__/rootState.spec.ts
src/rootStore.ts

index 7e90bdec5eeec4fb9366ab41f711e3e3555dcbcc..991629bce16e71a7766b105ef5637eff46b9e3f6 100644 (file)
@@ -82,13 +82,13 @@ describe('Actions', () => {
     expect(store.$state.nested.foo).toBe('bar')
   })
 
-  it('supports being called between piniauests', () => {
+  it('supports being called between two applications', () => {
     const pinia1 = createPinia()
     const pinia2 = createPinia()
     setActivePinia(pinia1)
     const aStore = useA()
 
-    // simulate a different piniauest
+    // simulate a different application
     setActivePinia(pinia2)
     const bStore = useB()
     bStore.$state.b = 'c'
index 2e066a679cc003b6cae1df9e43346c3251420675..26d04f6f3f3c593b19bc0dd80ff820d25686091d 100644 (file)
@@ -52,13 +52,13 @@ describe('Getters', () => {
     expect(store.upperCaseName).toBe('ED')
   })
 
-  it('supports changing between piniauests', () => {
+  it('supports changing between applications', () => {
     const pinia1 = createPinia()
     const pinia2 = createPinia()
     setActivePinia(pinia1)
     const aStore = useA()
 
-    // simulate a different piniauest
+    // simulate a different applications
     setActivePinia(pinia2)
     const bStore = useB()
     bStore.b = 'c'
index 6a8e056fed08ba5bd9a7e4ea0fdd485d55fdc853..b0f0635a1bd4c9ee78fefd7063ff92f43162da36 100644 (file)
@@ -23,7 +23,7 @@ describe('Root State', () => {
     })
   })
 
-  it('does not mix up different piniauests', () => {
+  it('does not mix up different applications', () => {
     const pinia1 = createPinia()
     const pinia2 = createPinia()
     useA(pinia1)
index 9ad60984bd4f591b65b8167f7989fb5cc60239a6..fc20db7fcdcb6dd4d46a7cc261770cc5e9cd9e60 100644 (file)
@@ -31,7 +31,7 @@ export const getActivePinia = () => {
 /**
  * The api needs more work we must be able to use the store easily in any
  * function by calling `useStore` to get the store Instance and we also need to
- * be able to reset the store instance between piniauests on the server
+ * be able to reset the store instance between applications on the server
  */
 
 export const storesMap = new WeakMap<
@@ -63,7 +63,7 @@ export function getInitialState(id: string): StateTree | undefined {
 /**
  * Gets the root state of all active stores. This is useful when reporting an application crash by
  * retrieving the problematic state and send it to your error tracking service.
- * @param pinia - piniauest key
+ * @param pinia - application's pinia
  */
 export function getRootState(pinia: Pinia): Record<string, StateTree> {
   return pinia.state.value