Skip to content

Commit

Permalink
fix: remove mock connect store and props from test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
shontzu-deriv committed Mar 7, 2023
1 parent 30dce1e commit 0fd05d7
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,6 @@ jest.mock('@deriv/shared', () => ({
isMobile: jest.fn(() => true),
}));

const mock_connect_props = {
is_dark_mode: false,
};

jest.mock('Stores/connect.js', () => ({
__esModule: true,
default: 'mockedDefaultExport',
connect: () => Component => props => Component({ ...props, ...mock_connect_props }),
}));

const withRouter = <T extends object>(Component: React.ComponentType<T>) => {
const history = createBrowserHistory();
const WrapperComponent = <U extends object>(props: T & U) => (
Expand Down

0 comments on commit 0fd05d7

Please sign in to comment.