From 80043d4d3ce12efd247d0cf58c4d39ec7da1da74 Mon Sep 17 00:00:00 2001 From: Patrick Smith Date: Tue, 21 Nov 2023 23:13:57 +1100 Subject: [PATCH] Nicer numbers --- src/media-query.test.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/media-query.test.ts b/src/media-query.test.ts index ea2b558..18e3707 100644 --- a/src/media-query.test.ts +++ b/src/media-query.test.ts @@ -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);