From 8f334f42adbff534827b92a9552e741c07bf3dd5 Mon Sep 17 00:00:00 2001 From: asiaznik Date: Wed, 6 Mar 2024 15:18:14 +0100 Subject: [PATCH] chore: mocks --- libs/deal-ticket/src/test-helpers.ts | 1 + libs/markets/src/lib/components/market-info/market-info.mock.ts | 1 + libs/markets/src/lib/markets.mock.ts | 1 + libs/orders/src/lib/components/mocks/generate-orders.ts | 1 + libs/orders/src/lib/components/mocks/generate-stop-orders.ts | 1 + .../src/lib/components/order-list/order-view-dialog.spec.tsx | 1 + 6 files changed, 6 insertions(+) diff --git a/libs/deal-ticket/src/test-helpers.ts b/libs/deal-ticket/src/test-helpers.ts index fb2e1a885..8eae87171 100644 --- a/libs/deal-ticket/src/test-helpers.ts +++ b/libs/deal-ticket/src/test-helpers.ts @@ -11,6 +11,7 @@ export function generateMarket(override?: PartialDeep): Market { positionDecimalPlaces: 1, tradingMode: Schema.MarketTradingMode.TRADING_MODE_CONTINUOUS, state: Schema.MarketState.STATE_ACTIVE, + tickSize: '1', marketTimestamps: { __typename: 'MarketTimestamps', close: '', diff --git a/libs/markets/src/lib/components/market-info/market-info.mock.ts b/libs/markets/src/lib/components/market-info/market-info.mock.ts index 73c01f26f..6afaae03f 100644 --- a/libs/markets/src/lib/components/market-info/market-info.mock.ts +++ b/libs/markets/src/lib/components/market-info/market-info.mock.ts @@ -14,6 +14,7 @@ export const marketInfoQuery = ( positionDecimalPlaces: 0, state: Schema.MarketState.STATE_ACTIVE, tradingMode: Schema.MarketTradingMode.TRADING_MODE_CONTINUOUS, + tickSize: '1', proposal: { __typename: 'Proposal', id: 'market-0', diff --git a/libs/markets/src/lib/markets.mock.ts b/libs/markets/src/lib/markets.mock.ts index faa8a13d6..e1086ce40 100644 --- a/libs/markets/src/lib/markets.mock.ts +++ b/libs/markets/src/lib/markets.mock.ts @@ -37,6 +37,7 @@ export const createMarketFragment = ( positionDecimalPlaces: 0, tradingMode: Schema.MarketTradingMode.TRADING_MODE_CONTINUOUS, state: Schema.MarketState.STATE_ACTIVE, + tickSize: '1', marketTimestamps: { __typename: 'MarketTimestamps', close: null, diff --git a/libs/orders/src/lib/components/mocks/generate-orders.ts b/libs/orders/src/lib/components/mocks/generate-orders.ts index 60e9c3cc1..eacc46881 100644 --- a/libs/orders/src/lib/components/mocks/generate-orders.ts +++ b/libs/orders/src/lib/components/mocks/generate-orders.ts @@ -11,6 +11,7 @@ export const generateOrder = (partialOrder?: PartialDeep) => { __typename: 'Market', id: 'market-id', decimalPlaces: 1, + tickSize: '1', fees: { __typename: 'Fees', factors: { diff --git a/libs/orders/src/lib/components/mocks/generate-stop-orders.ts b/libs/orders/src/lib/components/mocks/generate-stop-orders.ts index f13f949d9..397aec887 100644 --- a/libs/orders/src/lib/components/mocks/generate-stop-orders.ts +++ b/libs/orders/src/lib/components/mocks/generate-stop-orders.ts @@ -21,6 +21,7 @@ export const generateStopOrder = ( __typename: 'Market', id: 'market-id', decimalPlaces: 1, + tickSize: '1', fees: { __typename: 'Fees', factors: { diff --git a/libs/orders/src/lib/components/order-list/order-view-dialog.spec.tsx b/libs/orders/src/lib/components/order-list/order-view-dialog.spec.tsx index 585db7f34..4c6651cae 100644 --- a/libs/orders/src/lib/components/order-list/order-view-dialog.spec.tsx +++ b/libs/orders/src/lib/components/order-list/order-view-dialog.spec.tsx @@ -22,6 +22,7 @@ describe('OrderViewDialog', () => { positionDecimalPlaces: 3, state: MarketState.STATE_ACTIVE, tradingMode: MarketTradingMode.TRADING_MODE_CONTINUOUS, + tickSize: '1', fees: { __typename: 'Fees', factors: {