import { mockDimensions } from '../../testUtils/mocks'; describe('hasHomeBar', () => { it.each` width | height | expectedResult ${375} | ${812} | ${true} ${812} | ${375} | ${true} ${414} | ${896} | ${true} ${1366} | ${1024} | ${true} ${720} | ${1280} | ${false} ${1920} | ${1080} | ${false} `( 'returns $expectedResult if device WxH = $width x $height', ({ width, height, expectedResult }: { width: number; height: number; expectedResult: boolean }) => { mockDimensions(width, height); const { default: hasHomeBar } = require('../hasHomeBar'); expect(hasHomeBar()).toEqual(expectedResult); }, ); });