From da07e6f687d434d6a73ea070fc036d2c2c09f5a2 Mon Sep 17 00:00:00 2001 From: Madalina Raicu Date: Wed, 6 Mar 2024 10:11:30 +0000 Subject: [PATCH] fix: unit tests --- .../src/utils/map-form-values-to-submisstion.spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/deal-ticket/src/utils/map-form-values-to-submisstion.spec.ts b/libs/deal-ticket/src/utils/map-form-values-to-submisstion.spec.ts index 79fff98f6..5538f1ce2 100644 --- a/libs/deal-ticket/src/utils/map-form-values-to-submisstion.spec.ts +++ b/libs/deal-ticket/src/utils/map-form-values-to-submisstion.spec.ts @@ -236,11 +236,11 @@ describe('mapFormValuesToTakeProfitAndStopLoss', () => { marketId: 'marketId', postOnly: false, price: undefined, - reduceOnly: false, + reduceOnly: true, reference: 'reference', side: Schema.Side.SIDE_SELL, size: '10000', - timeInForce: OrderTimeInForce.TIME_IN_FORCE_GTC, + timeInForce: OrderTimeInForce.TIME_IN_FORCE_FOK, type: OrderType.TYPE_MARKET, }, price: '600000', @@ -393,11 +393,11 @@ describe('mapFormValuesToTakeProfitAndStopLoss', () => { marketId: 'marketId', postOnly: false, price: undefined, - reduceOnly: false, + reduceOnly: true, reference: 'reference', side: Schema.Side.SIDE_SELL, size: '10000', - timeInForce: OrderTimeInForce.TIME_IN_FORCE_GTC, + timeInForce: OrderTimeInForce.TIME_IN_FORCE_FOK, type: OrderType.TYPE_MARKET, }, price: '600000',