Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/testing/actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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());
};
Expand Down
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/__tests__/integration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ describe('Integration', () => {

const App = ({ scopeId }) => (
<>
<HookWrapper name="outter" />
<HookWrapper name="outer" />
<Container scope={scopeId} v={scopeId}>
<HookWrapper name="inner">
<SubWrapper />
Expand All @@ -296,7 +296,7 @@ describe('Integration', () => {
await actTick();

expect(calls).toEqual([
'HookWrapper[outter]',
'HookWrapper[outer]',
'HookWrapper[inner]',
'SubWrapper',
'HookWrapper[in-inner]',
Expand All @@ -308,7 +308,7 @@ describe('Integration', () => {
await actTick();

expect(calls).toEqual([
'HookWrapper[outter]',
'HookWrapper[outer]',
'HookWrapper[inner]',
'SubWrapper',
'HookWrapper[in-inner]',
Expand Down
2 changes: 1 addition & 1 deletion src/components/container.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down