add order ID to test
This commit is contained in:
@@ -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
|
||||||
|
),
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user