From 1b0fe4334e72933e89c1cceb516b50aa0aa6a1a8 Mon Sep 17 00:00:00 2001 From: Tiago Siebler Date: Sun, 9 Feb 2025 11:34:37 +0000 Subject: [PATCH] chore(): simple test fix --- package-lock.json | 4 ++-- test/spot/private.write.test.ts | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index d3ede02..5b94398 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "bitget-api", - "version": "2.3.0", + "version": "2.3.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "bitget-api", - "version": "2.3.0", + "version": "2.3.1", "license": "MIT", "dependencies": { "axios": "^1.6.1", diff --git a/test/spot/private.write.test.ts b/test/spot/private.write.test.ts index 3f418d3..db68dc6 100644 --- a/test/spot/private.write.test.ts +++ b/test/spot/private.write.test.ts @@ -35,8 +35,8 @@ describe('Private Spot REST API POST Endpoints', () => { } catch (e) { // console.error('transfer: ', e); expect(e.body).toMatchObject({ - // not sure what this error means, probably no balance. Seems to change? - code: expect.stringMatching(/42013|43117/gim), + // not sure what this error means, probably no kyc. Seems to change? + code: expect.stringMatching(/42013|43117|40035/gim), }); } }); @@ -54,8 +54,8 @@ describe('Private Spot REST API POST Endpoints', () => { } catch (e) { // console.error('transferV2: ', e); expect(e.body).toMatchObject({ - // not sure what this error means, probably no balance. Seems to change? - code: expect.stringMatching(/42013|43117/gim), + // not sure what this error means, probably no kyc. Seems to change? + code: expect.stringMatching(/42013|43117|40035/gim), }); } }); @@ -89,7 +89,7 @@ describe('Private Spot REST API POST Endpoints', () => { amount: '100', coin, chain: 'TRC20', - address: `123456`, + address: '123456', }), ).toMatchObject({ ...sucessEmptyResponseObject(), @@ -109,7 +109,7 @@ describe('Private Spot REST API POST Endpoints', () => { amount: '100', coin, chain: 'TRC20', - address: `123456`, + address: '123456', }), ).toMatchObject({ ...sucessEmptyResponseObject(),