chore(): fix tests with new api error codes

This commit is contained in:
Tiago Siebler
2023-08-29 11:17:31 +01:00
parent 27871bbfd9
commit 49b739fa5c
4 changed files with 13 additions and 7 deletions

View File

@@ -165,7 +165,7 @@ describe('Private Spot REST API POST Endpoints', () => {
});
} catch (e) {
expect(e.body).toMatchObject({
code: API_ERROR_CODE.QTY_LESS_THAN_MINIMUM,
code: API_ERROR_CODE.QTY_LESS_THAN_MINIMUM_SPOT,
});
}
});
@@ -185,10 +185,12 @@ describe('Private Spot REST API POST Endpoints', () => {
...sucessEmptyResponseObject(),
data: {
resultList: expect.any(Array),
failure: [{ errorCode: API_ERROR_CODE.QTY_LESS_THAN_MINIMUM }],
failure: [{ errorCode: API_ERROR_CODE.QTY_LESS_THAN_MINIMUM_SPOT }],
},
});
} catch (e) {
// console.log(`fn() exception: `, e.body);
expect(e).toBeNull();
}
});