Skip to content

Commit

Permalink
refactor: test for react-joyride-wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
maryia-matskevich-deriv committed Aug 25, 2023
1 parent 6f94d16 commit f98823e
Showing 1 changed file with 1 addition and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react';
import { mockStore, StoreProvider } from '@deriv/stores';
// eslint-disable-next-line import/no-extraneous-dependencies
import { render, screen } from '@testing-library/react';
import { mock_ws } from 'Utils/mock';
import { DBotStoreProvider, mockDBotStore } from '../../../stores/useDBotStore';
import ReactJoyrideWrapper from '../react-joyride-wrapper';

Expand All @@ -14,20 +15,6 @@ jest.mock('@deriv/bot-skeleton/src/scratch/hooks/block_svg', () => jest.fn());
jest.mock('react-joyride', () => jest.fn(() => <div>ReactJoyride</div>));

describe('ReactJoyrideWrapper', () => {
const mock_ws = {
authorized: {
subscribeProposalOpenContract: jest.fn(),
send: jest.fn(),
},
storage: {
send: jest.fn(),
},
contractUpdate: jest.fn(),
subscribeTicksHistory: jest.fn(),
forgetStream: jest.fn(),
activeSymbols: jest.fn(),
send: jest.fn(),
};
const mock_store = mockStore({});
const mock_DBot_store = mockDBotStore(mock_store, mock_ws);

Expand Down

0 comments on commit f98823e

Please sign in to comment.