delete unused test

This commit is contained in:
jerempy
2023-10-04 13:41:43 -04:00
parent 33e5e74228
commit 4be0c1c0eb

View File

@@ -1,20 +0,0 @@
// When testing library added this is unit test for the useMediaQuery
// import { renderHook } from '@testing-library/react-hooks';
// import { useMediaQuery } from '.';
// describe('useMediaQuery', () => {
// it('should update isMobile and isDesktop when window is resized', () => {
// const { result } = renderHook(() => useMediaQuery());
// global.innerWidth = 800;
// global.dispatchEvent(new Event('resize'));
// expect(result.current.isMobile).toBe(true);
// expect(result.current.isDesktop).toBe(false);
// global.innerWidth = 1200;
// global.dispatchEvent(new Event('resize'));
// expect(result.current.isMobile).toBe(false);
// expect(result.current.isDesktop).toBe(true);
// });
// });