chore: adding missing timestamp fields to tests

This commit is contained in:
Matthew Russell 2024-03-09 16:58:29 +00:00
parent 4f5ad8b087
commit 42079206b4
No known key found for this signature in database
6 changed files with 12 additions and 0 deletions

View File

@ -13,6 +13,8 @@ export function generateMarket(override?: PartialDeep<Market>): Market {
state: Schema.MarketState.STATE_ACTIVE,
marketTimestamps: {
__typename: 'MarketTimestamps',
proposed: '2024-01-02',
pending: '2024-01-01',
close: '',
open: '',
},

View File

@ -65,6 +65,8 @@ export const generateFill = (override?: PartialDeep<Trade>) => {
},
marketTimestamps: {
__typename: 'MarketTimestamps',
proposed: '2005-03-31T19:37:00.000Z',
pending: '2005-04-01T19:37:00.000Z',
open: '2005-04-02T19:37:00.000Z',
close: '2005-04-02T19:37:00.000Z',
},

View File

@ -34,6 +34,8 @@ export const generateFundingPayment = (
},
marketTimestamps: {
__typename: 'MarketTimestamps',
proposed: '2005-03-31T19:37:00.000Z',
pending: '2005-04-01T19:37:00.000Z',
open: '2005-04-02T19:37:00.000Z',
close: '2005-04-02T19:37:00.000Z',
},

View File

@ -32,6 +32,8 @@ export const generateStopOrder = (
},
marketTimestamps: {
__typename: 'MarketTimestamps',
proposed: '2005-04-02T19:37:00.000Z',
pending: '2005-04-03T19:37:00.000Z',
close: '',
open: '',
},

View File

@ -116,6 +116,8 @@ describe('OrderViewDialog', () => {
},
marketTimestamps: {
__typename: 'MarketTimestamps',
proposed: '2023-07-17T12:05:25.822854221Z',
pending: '2023-07-18T12:05:25.822854221Z',
open: '2023-07-19T12:05:25.822854221Z',
close: null,
},

View File

@ -216,6 +216,8 @@ describe('WithdrawFormContainer', () => {
},
marketTimestamps: {
__typename: 'MarketTimestamps',
proposed: '2022-10-23T18:17:59.149283671Z',
pending: '2022-10-24T18:17:59.149283671Z',
open: '2022-10-25T18:17:59.149283671Z',
close: null,
},