Skip to content

Commit

Permalink
chore: accumulator fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadtaimoor-deriv committed Jun 13, 2024
1 parent d118ed7 commit 93f0e84
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
WS,
hasContractEntered,
isForwardStarting,
isAccumulatorContract,
} from '@deriv/shared';
import { getContractDetailsConfig } from 'AppV2/Utils/contract-details-config';

Expand Down Expand Up @@ -89,6 +90,7 @@ jest.mock('@deriv/shared', () => ({
useWS: jest.fn(),
hasContractEntered: jest.fn(),
isForwardStarting: jest.fn(),
isAccumulatorContract: jest.fn(),
WS: {
contractUpdateHistory: jest.fn(),
},
Expand Down Expand Up @@ -142,6 +144,7 @@ describe('ContractDetails', () => {
(isOpen as jest.Mock).mockReturnValue(true);
(hasContractEntered as jest.Mock).mockReturnValue(true);
(isForwardStarting as jest.Mock).mockReturnValue(true);
(isAccumulatorContract as jest.Mock).mockReturnValue(false);
(useWS as jest.Mock).mockReturnValue({
send: jest.fn(),
subscribe: jest.fn(),
Expand Down

0 comments on commit 93f0e84

Please sign in to comment.