chore(): fix changed test error code

This commit is contained in:
tiagosiebler
2022-10-12 23:49:24 +01:00
parent 6296bc50a2
commit b304527b2d
2 changed files with 4 additions and 1 deletions

View File

@@ -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,

View File

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