chore(): fix changed test error code
This commit is contained in:
@@ -21,6 +21,7 @@ export const API_ERROR_CODE = {
|
||||
INCORRECT_PRIVATE_OPERATIONS: 3303001,
|
||||
/** Account not unified margin, update required */
|
||||
ACCOUNT_NOT_UNIFIED: 10020,
|
||||
UNKNOWN_ERROR: 12000,
|
||||
BALANCE_INSUFFICIENT_SPOT_V3: 12131,
|
||||
ORDER_NOT_FOUND_SPOT_V3: 12213,
|
||||
ORDER_NOT_FOUND_LEVERAGED_TOKEN: 12407,
|
||||
|
||||
@@ -73,7 +73,9 @@ describe('Private Spot REST API POST Endpoints', () => {
|
||||
|
||||
it('repayCrossMarginLoan()', async () => {
|
||||
expect(await api.repayCrossMarginLoan('USDT', '1')).toMatchObject({
|
||||
retCode: API_ERROR_CODE.CROSS_MARGIN_REPAYMENT_NOT_REQUIRED,
|
||||
retCode: API_ERROR_CODE.UNKNOWN_ERROR,
|
||||
// previously:
|
||||
// retCode: API_ERROR_CODE.CROSS_MARGIN_REPAYMENT_NOT_REQUIRED,
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user