Skip to content

Commit

Permalink
refactor: 🎨 refactors test file
Browse files Browse the repository at this point in the history
  • Loading branch information
shaheer-deriv committed Oct 4, 2023
1 parent b6a73c7 commit 93c6be9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ let mockRootStore: ReturnType<typeof mockStore>;

jest.mock('@deriv/hooks', () => ({
...jest.requireActual('@deriv/hooks'),
useIsMt5LoginListStatusPresent: jest.fn(() => false),
useIsMt5LoginListStatusPresent: jest.fn(() => ({ is_flag_present: false, flag_value: undefined })),
}));
const mockedUseIsMt5LoginListStatusPresent = useIsMt5LoginListStatusPresent as jest.MockedFunction<
typeof useIsMt5LoginListStatusPresent
Expand Down

0 comments on commit 93c6be9

Please sign in to comment.