Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
Found few misspellings in tests.

props @szepeviktor
  • Loading branch information
szepeviktor authored Jun 9, 2024
1 parent 167414d commit 6da08c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/client/unit/hooks/use-entities-options-storage.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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( () =>
Expand Down Expand Up @@ -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( () =>
Expand Down
2 changes: 1 addition & 1 deletion tests/client/unit/hooks/use-search.test.ts
Original file line number Diff line number Diff line change
@@ -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.
*/
Expand Down

0 comments on commit 6da08c0

Please sign in to comment.