From 04ee8cfb3cd087188a9422848c52434599d4d912 Mon Sep 17 00:00:00 2001 From: shafin-deriv Date: Fri, 6 Oct 2023 15:14:53 +0800 Subject: [PATCH] chore: remove unnecessary mocks --- .../journal-components/__tests__/filter-dialog.spec.tsx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/packages/bot-web-ui/src/components/journal/journal-components/__tests__/filter-dialog.spec.tsx b/packages/bot-web-ui/src/components/journal/journal-components/__tests__/filter-dialog.spec.tsx index ff2bd4f9728e..dea1e53870d8 100644 --- a/packages/bot-web-ui/src/components/journal/journal-components/__tests__/filter-dialog.spec.tsx +++ b/packages/bot-web-ui/src/components/journal/journal-components/__tests__/filter-dialog.spec.tsx @@ -9,11 +9,6 @@ import RootStore from 'Stores/index'; import { DBotStoreProvider, mockDBotStore } from 'Stores/useDBotStore'; import FilterDialog from '../filter-dialog'; -jest.mock('@deriv/shared', () => ({ - ...jest.requireActual('@deriv/shared'), - isMobile: () => false, -})); - jest.mock('@deriv/bot-skeleton/src/scratch/blockly', () => jest.fn()); jest.mock('@deriv/bot-skeleton/src/scratch/dbot', () => ({ saveRecentWorkspace: jest.fn(), @@ -36,11 +31,11 @@ const mockProps = { filterMessage: jest.fn(), toggleFilterDialog: jest.fn(), }; + describe('Draggable', () => { let wrapper: ({ children }: { children: JSX.Element }) => JSX.Element, mock_DBot_store: RootStore | undefined; - beforeEach(() => { - jest.resetModules(); + beforeAll(() => { const mock_store = mockStore({}); mock_DBot_store = mockDBotStore(mock_store, mock_ws);