Skip to content

Commit 6da08c0

Browse files
authored
Fix typos
Found few misspellings in tests. props @szepeviktor
1 parent 167414d commit 6da08c0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/client/unit/hooks/use-entities-options-storage.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jest.mock( '@wordpress/hooks', () => ( {
2424
} ) );
2525

2626
describe( 'Use Posts Options Storage', () => {
27-
it( 'Ensure seachEntities is called with the right data on state hydratation.', async () => {
27+
it( 'Ensure searchEntities is called with the right data on state hydratation.', async () => {
2828
const kind = new Set( [ 'post' ] );
2929
const entities = new Set( [ 1, 2, 3 ] );
3030
const searchEntities = jest.fn( () =>
@@ -218,7 +218,7 @@ describe( 'Use Posts Options Storage', () => {
218218
} );
219219
} );
220220

221-
it( 'Execute the action wp-entities-search.on-storage-initialization.error when there is an error on searchEntites', async () => {
221+
it( 'Execute the action wp-entities-search.on-storage-initialization.error when there is an error on searchEntities', async () => {
222222
const kind = new Set( [ 'post' ] );
223223
const entities = new Set( [ 1, 2, 3 ] );
224224
const searchEntities = jest.fn( () =>

tests/client/unit/hooks/use-search.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* We have to write a set of tests to check the behavior of the search function returned by the useSearch hook.
3-
* Particularly we want to mock the useThrottle hook to exectute the search function immediately without waiting for the throttle time.
3+
* Particularly we want to mock the useThrottle hook to execute the search function immediately without waiting for the throttle time.
44
* We also want to mock the searchEntities function to return a set of options or when necessary throw an error.
55
* The dispatch function is also mocked to check if the state is updated correctly.
66
*/

0 commit comments

Comments
 (0)