diff --git a/tests/client/unit/hooks/use-entities-options-storage.test.tsx b/tests/client/unit/hooks/use-entities-options-storage.test.tsx index 376771d..4119f10 100644 --- a/tests/client/unit/hooks/use-entities-options-storage.test.tsx +++ b/tests/client/unit/hooks/use-entities-options-storage.test.tsx @@ -15,7 +15,7 @@ jest.mock('@wordpress/hooks', () => ({ })); describe('Use Posts Options Storage', () => { - it('Ensure seachEntities is called with the right data on state hydratation.', async () => { + it('Ensure searchEntities is called with the right data on state hydratation.', async () => { const kind = new Set(['post']); const entities = new Set([1, 2, 3]); const searchEntities = jest.fn(() => @@ -211,7 +211,7 @@ describe('Use Posts Options Storage', () => { }); }); - it('Execute the action wp-entities-search.on-storage-initialization.error when there is an error on searchEntites', async () => { + it('Execute the action wp-entities-search.on-storage-initialization.error when there is an error on searchEntities', async () => { const kind = new Set(['post']); const entities = new Set([1, 2, 3]); const searchEntities = jest.fn(() => diff --git a/tests/client/unit/hooks/use-search.test.ts b/tests/client/unit/hooks/use-search.test.ts index bac4c3f..e1fced0 100644 --- a/tests/client/unit/hooks/use-search.test.ts +++ b/tests/client/unit/hooks/use-search.test.ts @@ -1,6 +1,6 @@ /* * We have to write a set of tests to check the behavior of the search function returned by the useSearch hook. - * Particularly we want to mock the useThrottle hook to exectute the search function immediately without waiting for the throttle time. + * Particularly we want to mock the useThrottle hook to execute the search function immediately without waiting for the throttle time. * We also want to mock the searchEntities function to return a set of options or when necessary throw an error. * The dispatch function is also mocked to check if the state is updated correctly. */