add extra tests for spot v3 signature issue (#187)

This commit is contained in:
tiagosiebler
2022-10-24 19:46:40 +01:00
parent 87683423c0
commit b0608dacc8
2 changed files with 24 additions and 2 deletions

View File

@@ -35,6 +35,28 @@ describe('Private Spot REST API GET Endpoints', () => {
expect(await api.getOpenOrders()).toMatchObject(successResponseListV3());
});
it('getOpenOrders() with symbol', async () => {
expect(await api.getOpenOrders(symbol)).toMatchObject(
successResponseListV3()
);
});
it('getOpenOrders() with order category', async () => {
const orderId = undefined;
const ordersPerPage = undefined;
// all these should succeed
expect(
await api.getOpenOrders(symbol, orderId, ordersPerPage)
).toMatchObject(successResponseListV3());
expect(
await api.getOpenOrders(symbol, orderId, ordersPerPage, 0)
).toMatchObject(successResponseListV3());
expect(
await api.getOpenOrders(symbol, orderId, ordersPerPage, 1)
).toMatchObject(successResponseListV3());
});
it('getPastOrders()', async () => {
expect(await api.getPastOrders()).toMatchObject(successResponseListV3());
});