Skip to content

Commit

Permalink
Fix JS unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonjd committed Oct 30, 2024
1 parent 07145ed commit 74571e7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jest.mock( '@wordpress/compose/src/hooks/use-viewport-match', () => jest.fn() );

describe( 'EditPostPreferencesModal', () => {
it( 'should not render when the modal is not active', () => {
useSelect.mockImplementation( () => [ false, false, false ] );
useSelect.mockImplementation( () => false );
render( <EditPostPreferencesModal /> );
expect(
screen.queryByRole( 'dialog', { name: 'Preferences' } )
Expand Down

0 comments on commit 74571e7

Please sign in to comment.