Skip to content

Commit

Permalink
refactor: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kate-deriv committed Aug 22, 2023
1 parent 19dac89 commit fd75213
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { screen, render } from '@testing-library/react';
import { TContractInfo } from '@deriv/shared';
import ContractDetails from '../contract-details';

type TTContractInfoCancellation = TContractInfo & {
type TContractInfoWithCancellation = TContractInfo & {
cancellation: {
ask_price: number;
date_expiry: number;
Expand Down Expand Up @@ -57,7 +57,7 @@ describe('ContractDetails', () => {
render(
<ContractDetails
contract_end_time={123456789}
contract_info={contract_info as TTContractInfoCancellation}
contract_info={contract_info as TContractInfoWithCancellation}
duration_unit={'day'}
duration={1}
exit_spot={'123'}
Expand All @@ -71,7 +71,7 @@ describe('ContractDetails', () => {
render(
<ContractDetails
contract_end_time={123456789}
contract_info={contract_info as TTContractInfoCancellation}
contract_info={contract_info as TContractInfoWithCancellation}
duration_unit={'day'}
duration={1}
exit_spot={'123'}
Expand Down

0 comments on commit fd75213

Please sign in to comment.