From bc226672ccc71833a5ecaeb8f26ff51ba9277cd9 Mon Sep 17 00:00:00 2001 From: azro Date: Wed, 7 Dec 2022 21:15:24 +0100 Subject: [PATCH] Remove impossible test --- components/grid/__tests__/index.test.tsx | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/components/grid/__tests__/index.test.tsx b/components/grid/__tests__/index.test.tsx index e3b9825e048b..3e7b5e5acd73 100644 --- a/components/grid/__tests__/index.test.tsx +++ b/components/grid/__tests__/index.test.tsx @@ -84,22 +84,6 @@ describe('Grid', () => { expect(asFragment().firstChild).toMatchSnapshot(); }); - it('ResponsiveObserve.unsubscribe should be called when unmounted', () => { - let responsiveObserveRef: any; - const Demo = () => { - const responsiveObserve = useResponsiveObserve(); - responsiveObserveRef = responsiveObserve; - return null; - }; - render(); - const Unmount = jest.spyOn(responsiveObserveRef, 'unsubscribe'); - const { unmount } = render(); - act(() => { - unmount(); - }); - expect(Unmount).toHaveBeenCalled(); - }); - it('should work correct when gutter is object', () => { const { container } = render(); expect(container.querySelector('div')!.style.marginLeft).toEqual('-10px');