Skip to content

Commit

Permalink
fix: types in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kate-deriv committed Oct 2, 2023
1 parent e607757 commit a969cb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const default_mocked_props = {
should_fade: false,
setPurchaseState: jest.fn(),
type: 'VANILLALONGCALL',
};
} as unknown as React.ComponentProps<typeof PurchaseButton>;

jest.mock('@deriv/shared', () => ({
...jest.requireActual('@deriv/shared'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const default_mocked_props = {
purchased_states_arr: [true, false],
setPurchaseState: jest.fn(),
type: '',
};
} as unknown as React.ComponentProps<typeof PurchaseFieldset>;

jest.mock('@deriv/shared', () => ({
...jest.requireActual('@deriv/shared'),
Expand Down

0 comments on commit a969cb5

Please sign in to comment.