From: Eduardo San Martin Morote Date: Thu, 31 Dec 2020 14:27:39 +0000 (+0100) Subject: chore: comments typos X-Git-Tag: v2.0.0-alpha.6~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a9517cf922e6debe9f8a08716fb3caf5c9175b37;p=thirdparty%2Fvuejs%2Fpinia.git chore: comments typos --- diff --git a/__tests__/actions.spec.ts b/__tests__/actions.spec.ts index 7e90bdec..991629bc 100644 --- a/__tests__/actions.spec.ts +++ b/__tests__/actions.spec.ts @@ -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' diff --git a/__tests__/getters.spec.ts b/__tests__/getters.spec.ts index 2e066a67..26d04f6f 100644 --- a/__tests__/getters.spec.ts +++ b/__tests__/getters.spec.ts @@ -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' diff --git a/__tests__/rootState.spec.ts b/__tests__/rootState.spec.ts index 6a8e056f..b0f0635a 100644 --- a/__tests__/rootState.spec.ts +++ b/__tests__/rootState.spec.ts @@ -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) diff --git a/src/rootStore.ts b/src/rootStore.ts index 9ad60984..fc20db7f 100644 --- a/src/rootStore.ts +++ b/src/rootStore.ts @@ -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 { return pinia.state.value