Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #23

Merged
merged 3 commits into from
Jun 9, 2024
Merged
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
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
Loading