Skip to content

Commit

Permalink
chore: remove unnecessary mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
shafin-deriv committed Oct 6, 2023
1 parent dcfc23a commit 04ee8cf
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -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);

Expand Down

0 comments on commit 04ee8cf

Please sign in to comment.