Merge pull request #57 from tiagosiebler/testfix0225

chore(): simple test fix
This commit is contained in:
Tiago
2025-02-09 11:35:47 +00:00
committed by GitHub
2 changed files with 8 additions and 8 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "bitget-api", "name": "bitget-api",
"version": "2.3.0", "version": "2.3.1",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "bitget-api", "name": "bitget-api",
"version": "2.3.0", "version": "2.3.1",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"axios": "^1.6.1", "axios": "^1.6.1",

View File

@@ -35,8 +35,8 @@ describe('Private Spot REST API POST Endpoints', () => {
} catch (e) { } catch (e) {
// console.error('transfer: ', e); // console.error('transfer: ', e);
expect(e.body).toMatchObject({ expect(e.body).toMatchObject({
// not sure what this error means, probably no balance. Seems to change? // not sure what this error means, probably no kyc. Seems to change?
code: expect.stringMatching(/42013|43117/gim), code: expect.stringMatching(/42013|43117|40035/gim),
}); });
} }
}); });
@@ -54,8 +54,8 @@ describe('Private Spot REST API POST Endpoints', () => {
} catch (e) { } catch (e) {
// console.error('transferV2: ', e); // console.error('transferV2: ', e);
expect(e.body).toMatchObject({ expect(e.body).toMatchObject({
// not sure what this error means, probably no balance. Seems to change? // not sure what this error means, probably no kyc. Seems to change?
code: expect.stringMatching(/42013|43117/gim), code: expect.stringMatching(/42013|43117|40035/gim),
}); });
} }
}); });
@@ -89,7 +89,7 @@ describe('Private Spot REST API POST Endpoints', () => {
amount: '100', amount: '100',
coin, coin,
chain: 'TRC20', chain: 'TRC20',
address: `123456`, address: '123456',
}), }),
).toMatchObject({ ).toMatchObject({
...sucessEmptyResponseObject(), ...sucessEmptyResponseObject(),
@@ -109,7 +109,7 @@ describe('Private Spot REST API POST Endpoints', () => {
amount: '100', amount: '100',
coin, coin,
chain: 'TRC20', chain: 'TRC20',
address: `123456`, address: '123456',
}), }),
).toMatchObject({ ).toMatchObject({
...sucessEmptyResponseObject(), ...sucessEmptyResponseObject(),