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

View File

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