Skip to content

Commit

Permalink
Update unit test for simplified return type
Browse files Browse the repository at this point in the history
  • Loading branch information
sarayourfriend authored and ntsekouras committed May 20, 2021
1 parent 08171ba commit 8e41fad
Showing 1 changed file with 2 additions and 1 deletion.
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

0 comments on commit 8e41fad

Please sign in to comment.