import { mockDimensions } from '../../testUtils/mocks'; describe('isLandscape', () => { it.each` width | height | expectedResult ${100} | ${200} | ${false} ${200} | ${100} | ${true} `( 'renders correctly when width is $width, height is $height and expectedResult is $expectedResult', ({ width, height, expectedResult }: { width: number; height: number; expectedResult: boolean }) => { mockDimensions(width, height); const { isLandscape } = require('../isLandscape'); expect(isLandscape).toEqual(expectedResult); }, ); });