From 19441804ce61c2c687cfd2e39dfe805654646101 Mon Sep 17 00:00:00 2001 From: John Bampton Date: Wed, 8 Oct 2025 05:21:12 +1000 Subject: [PATCH] Fix typos in JS and Markdown --- docs/testing/actions.md | 2 +- jest.config.js | 2 +- src/__tests__/integration.test.js | 6 +++--- src/components/container.js | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/testing/actions.md b/docs/testing/actions.md index 6b1a443..52dfded 100644 --- a/docs/testing/actions.md +++ b/docs/testing/actions.md @@ -185,7 +185,7 @@ const clickAnalytics = ({ setState, getState }) => { const currentTime = Date.now(); - // Store last anaytics sent and execute + // Store last analytics sent and execute setState({ lastAnalytics: currentTime }); sendClickAnalytics(getState()); }; diff --git a/jest.config.js b/jest.config.js index a72399d..c39d18e 100644 --- a/jest.config.js +++ b/jest.config.js @@ -45,7 +45,7 @@ module.exports = { // Make calling deprecated APIs throw helpful error messages // errorOnDeprecated: false, - // Force coverage collection from ignored files usin a array of glob patterns + // Force coverage collection from ignored files using an array of glob patterns // forceCoverageMatch: [], // A path to a module which exports an async function that is triggered once before all test suites diff --git a/src/__tests__/integration.test.js b/src/__tests__/integration.test.js index ca97e8b..dfa2014 100644 --- a/src/__tests__/integration.test.js +++ b/src/__tests__/integration.test.js @@ -282,7 +282,7 @@ describe('Integration', () => { const App = ({ scopeId }) => ( <> - + @@ -296,7 +296,7 @@ describe('Integration', () => { await actTick(); expect(calls).toEqual([ - 'HookWrapper[outter]', + 'HookWrapper[outer]', 'HookWrapper[inner]', 'SubWrapper', 'HookWrapper[in-inner]', @@ -308,7 +308,7 @@ describe('Integration', () => { await actTick(); expect(calls).toEqual([ - 'HookWrapper[outter]', + 'HookWrapper[outer]', 'HookWrapper[inner]', 'SubWrapper', 'HookWrapper[in-inner]', diff --git a/src/components/container.js b/src/components/container.js index 27c3e5b..0386c05 100644 --- a/src/components/container.js +++ b/src/components/container.js @@ -172,7 +172,7 @@ function createFunctionContainer({ displayName, override } = {}) { return () => { containedStores.forEach( ({ storeState, handlers, unsubscribe }, Store) => { - // Detatch container from subscription + // Detach container from subscription unsubscribe?.(); // Trigger a forced update on all subscribers as we opted out from context // Some might have already re-rendered naturally, but we "force update" all anyway.