fix test exception codes

This commit is contained in:
Tiago Siebler
2023-02-10 18:31:42 +00:00
parent 6f9981db15
commit b98ef12c69
2 changed files with 4 additions and 2 deletions

View File

@@ -82,7 +82,7 @@ describe('Private Futures REST API POST Endpoints', () => {
data: {},
});
} catch (e) {
console.log(`submitOrder() exception: `, e.body);
// console.log(`submitOrder() exception: `, e.body);
expect(e.body).toMatchObject({
// seems to be the new "insufficient balance" error, informed bitget on 7th feb
code: API_ERROR_CODE.QTY_GREATER_THAN_MAX_OPEN,
@@ -235,8 +235,9 @@ describe('Private Futures REST API POST Endpoints', () => {
data: {},
});
} catch (e) {
// console.log(e.body);
expect(e.body).toMatchObject({
code: API_ERROR_CODE.FUTURES_POSITION_DIRECTION_EMPTY,
code: API_ERROR_CODE.FUTURES_INSUFFICIENT_POSITION_NO_TPSL,
});
}
});