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 + ), }); });