chore: mocks

This commit is contained in:
asiaznik 2024-03-06 15:18:14 +01:00
parent 968ec4f3f8
commit 8f334f42ad
No known key found for this signature in database
GPG Key ID: 4D5C8972A02C52C2
6 changed files with 6 additions and 0 deletions

View File

@ -11,6 +11,7 @@ export function generateMarket(override?: PartialDeep<Market>): Market {
positionDecimalPlaces: 1,
tradingMode: Schema.MarketTradingMode.TRADING_MODE_CONTINUOUS,
state: Schema.MarketState.STATE_ACTIVE,
tickSize: '1',
marketTimestamps: {
__typename: 'MarketTimestamps',
close: '',

View File

@ -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',

View File

@ -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,

View File

@ -11,6 +11,7 @@ export const generateOrder = (partialOrder?: PartialDeep<Order>) => {
__typename: 'Market',
id: 'market-id',
decimalPlaces: 1,
tickSize: '1',
fees: {
__typename: 'Fees',
factors: {

View File

@ -21,6 +21,7 @@ export const generateStopOrder = (
__typename: 'Market',
id: 'market-id',
decimalPlaces: 1,
tickSize: '1',
fees: {
__typename: 'Fees',
factors: {

View File

@ -22,6 +22,7 @@ describe('OrderViewDialog', () => {
positionDecimalPlaces: 3,
state: MarketState.STATE_ACTIVE,
tradingMode: MarketTradingMode.TRADING_MODE_CONTINUOUS,
tickSize: '1',
fees: {
__typename: 'Fees',
factors: {