Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Update unit test for simplified return type
  • Loading branch information
sarayourfriend committed May 21, 2021
commit 3372412b8b9b13509fcb3a63b519f5ad5b3dd637
3 changes: 2 additions & 1 deletion packages/compose/src/hooks/use-media-query/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ describe( 'useMediaQuery', () => {
await act( async () => {
root = create( <TestComponent /> );
} );
expect( root.toJSON() ).toBe( 'useMediaQuery: undefined' );
// query will be case to a boolean to simplify the return type.
expect( root.toJSON() ).toBe( 'useMediaQuery: false' );

await act( async () => {
root.update( <TestComponent query={ false } /> );
Expand Down