From b304527b2d3bcfd31e6b8d7e5fef5d6fc89c398a Mon Sep 17 00:00:00 2001 From: tiagosiebler Date: Wed, 12 Oct 2022 23:49:24 +0100 Subject: [PATCH] chore(): fix changed test error code --- src/constants/enum.ts | 1 + test/spot/private.v3.write.test.ts | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/constants/enum.ts b/src/constants/enum.ts index 8526efc..db6d1e6 100644 --- a/src/constants/enum.ts +++ b/src/constants/enum.ts @@ -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, diff --git a/test/spot/private.v3.write.test.ts b/test/spot/private.v3.write.test.ts index 6e9694f..2377bc6 100644 --- a/test/spot/private.v3.write.test.ts +++ b/test/spot/private.v3.write.test.ts @@ -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, }); }); });