This commit is contained in:
tiagosiebler
2022-08-31 18:07:20 +01:00
parent b961b5ab27
commit a7f2075530
2 changed files with 5 additions and 5 deletions

View File

@@ -94,7 +94,7 @@ describe('Private Inverse-Futures REST API POST Endpoints', () => {
})
).toMatchObject({
ret_code: API_ERROR_CODE.ORDER_NOT_FOUND_OR_TOO_LATE,
ret_msg: 'order not exists or too late to cancel',
ret_msg: 'Order not exists',
});
});
@@ -138,8 +138,8 @@ describe('Private Inverse-Futures REST API POST Endpoints', () => {
take_profit: 50000,
})
).toMatchObject({
ret_code: API_ERROR_CODE.POSITION_STATUS_NOT_NORMAL,
ret_msg: 'position status is not normal',
ret_code: API_ERROR_CODE.POSITION_IDX_NOT_MATCH_POSITION_MODE,
ret_msg: 'position idx not match position mode',
});
});

View File

@@ -93,7 +93,7 @@ describe('Private Inverse REST API Endpoints', () => {
})
).toMatchObject({
ret_code: API_ERROR_CODE.ORDER_NOT_FOUND_OR_TOO_LATE,
ret_msg: 'order not exists or too late to cancel',
ret_msg: 'order not exists',
});
});
@@ -126,7 +126,7 @@ describe('Private Inverse REST API Endpoints', () => {
})
).toMatchObject({
ret_code: API_ERROR_CODE.POSITION_IS_CROSS_MARGIN,
ret_msg: 'position is in crossMargin',
ret_msg: expect.any(String),
});
});