Skip to content

Commit

Permalink
Nicer numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyalIcing committed Nov 21, 2023
1 parent 18c1867 commit 80043d4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/media-query.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -507,27 +507,27 @@ test('matchMedia()', () => {
).toBe(false);

expect(
matchMedia(screenSized(481, 100), 'screen and (min-width: 480px)').matches
matchMedia(screenSized(480, 100), 'screen and (min-width: 480px)').matches
).toBe(true);
expect(
matchMedia(screenSized(481, 100), 'only screen and (min-width: 480px)')
matchMedia(screenSized(480, 100), 'only screen and (min-width: 480px)')
.matches
).toBe(true);
expect(
matchMedia(
screenSized(481, 100),
screenSized(480, 100),
'only screen and (min-width: 480px) and (orientation: landscape)'
).matches
).toBe(true);
expect(
matchMedia(
screenSized(481, 100, "touchscreen"),
screenSized(480, 100, "touchscreen"),
'only screen and (min-width: 480px) and (orientation: landscape) and (any-hover: hover)'
).matches
).toBe(false);
expect(
matchMedia(
screenSized(481, 100, "touchscreen", "mouse"),
screenSized(480, 100, "touchscreen", "mouse"),
'only screen and (min-width: 480px) and (orientation: landscape) and (any-hover: hover)'
).matches
).toBe(true);
Expand Down

0 comments on commit 80043d4

Please sign in to comment.