add order ID to test

This commit is contained in:
tiagosiebler
2022-11-15 16:27:16 +00:00
parent 45373a1d1c
commit 22849818e7

View File

@@ -128,12 +128,15 @@ describe('Private Inverse-Futures REST API POST Endpoints', () => {
expect( expect(
await api.replaceConditionalOrder({ await api.replaceConditionalOrder({
symbol, symbol,
order_link_id: 'fakeOrderId',
p_r_price: '50000', p_r_price: '50000',
p_r_qty: 1, p_r_qty: 1,
}) })
).toMatchObject({ ).toMatchObject({
ret_code: API_ERROR_CODE.ORDER_NOT_FOUND_OR_TOO_LATE, 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
),
}); });
}); });