From 22849818e74b893a754960f576e422fdbc1e95f3 Mon Sep 17 00:00:00 2001 From: tiagosiebler Date: Tue, 15 Nov 2022 16:27:16 +0000 Subject: [PATCH] add order ID to test --- test/inverse-futures/private.write.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/inverse-futures/private.write.test.ts b/test/inverse-futures/private.write.test.ts index ce38716..7573ca5 100644 --- a/test/inverse-futures/private.write.test.ts +++ b/test/inverse-futures/private.write.test.ts @@ -128,12 +128,15 @@ describe('Private Inverse-Futures REST API POST Endpoints', () => { expect( await api.replaceConditionalOrder({ symbol, + order_link_id: 'fakeOrderId', p_r_price: '50000', p_r_qty: 1, }) ).toMatchObject({ ret_code: API_ERROR_CODE.ORDER_NOT_FOUND_OR_TOO_LATE, - // ret_msg: expect.stringMatching(/OK/gim), + ret_msg: expect.stringMatching( + /orderID or orderLinkID invalid|order not exists/gim + ), }); });