fix overly strict inverse & usdc options tests

This commit is contained in:
tiagosiebler
2022-10-09 19:20:05 +01:00
parent 6989c3570c
commit 6a925f18e1
4 changed files with 54 additions and 12 deletions

View File

@@ -31,7 +31,7 @@ describe('Private USDC Options REST API POST Endpoints', () => {
timeInForce: 'GoodTillCancel',
})
).toMatchObject({
retCode: API_ERROR_CODE.ACCOUNT_NOT_EXIST,
retCode: API_ERROR_CODE.CONTRACT_NAME_NOT_EXIST,
});
});
@@ -59,8 +59,8 @@ describe('Private USDC Options REST API POST Endpoints', () => {
])
).toMatchObject({
result: [
{ errorCode: API_ERROR_CODE.ACCOUNT_NOT_EXIST },
{ errorCode: API_ERROR_CODE.ACCOUNT_NOT_EXIST },
{ errorCode: API_ERROR_CODE.CONTRACT_NAME_NOT_EXIST },
{ errorCode: API_ERROR_CODE.CONTRACT_NAME_NOT_EXIST },
],
});
});
@@ -72,7 +72,7 @@ describe('Private USDC Options REST API POST Endpoints', () => {
orderId: 'somethingFake',
})
).toMatchObject({
retCode: API_ERROR_CODE.ORDER_NOT_EXIST,
retCode: API_ERROR_CODE.CONTRACT_NAME_NOT_EXIST,
});
});
@@ -90,8 +90,8 @@ describe('Private USDC Options REST API POST Endpoints', () => {
])
).toMatchObject({
result: [
{ errorCode: API_ERROR_CODE.ORDER_NOT_EXIST },
{ errorCode: API_ERROR_CODE.ORDER_NOT_EXIST },
{ errorCode: API_ERROR_CODE.CONTRACT_NAME_NOT_EXIST },
{ errorCode: API_ERROR_CODE.CONTRACT_NAME_NOT_EXIST },
],
});
});
@@ -103,7 +103,7 @@ describe('Private USDC Options REST API POST Endpoints', () => {
orderId: 'somethingFake1',
})
).toMatchObject({
retCode: API_ERROR_CODE.ORDER_NOT_EXIST,
retCode: API_ERROR_CODE.CONTRACT_NAME_NOT_EXIST,
});
});
@@ -121,8 +121,8 @@ describe('Private USDC Options REST API POST Endpoints', () => {
])
).toMatchObject({
result: [
{ errorCode: API_ERROR_CODE.ORDER_NOT_EXIST },
{ errorCode: API_ERROR_CODE.ORDER_NOT_EXIST },
{ errorCode: API_ERROR_CODE.CONTRACT_NAME_NOT_EXIST },
{ errorCode: API_ERROR_CODE.CONTRACT_NAME_NOT_EXIST },
],
});
});