mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 16:43:16 +00:00
delete unused test
This commit is contained in:
@@ -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);
|
||||
// });
|
||||
// });
|
||||
Reference in New Issue
Block a user