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 6836792..fab3f61 100644 --- a/tests/client/unit/hooks/use-entities-options-storage.test.tsx +++ b/tests/client/unit/hooks/use-entities-options-storage.test.tsx @@ -24,7 +24,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( () => @@ -218,7 +218,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 75e4b71..7ae13b5 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. */