chore(): add msg to failing test
This commit is contained in:
@@ -34,7 +34,7 @@ describe('Private Unified Margin REST API POST Endpoints', () => {
|
|||||||
price: '20000',
|
price: '20000',
|
||||||
orderLinkId: Date.now().toString(),
|
orderLinkId: Date.now().toString(),
|
||||||
timeInForce: 'GoodTillCancel',
|
timeInForce: 'GoodTillCancel',
|
||||||
})
|
}),
|
||||||
).toMatchObject({
|
).toMatchObject({
|
||||||
retCode: expect.any(Number),
|
retCode: expect.any(Number),
|
||||||
// retMsg: '',
|
// retMsg: '',
|
||||||
@@ -48,7 +48,7 @@ describe('Private Unified Margin REST API POST Endpoints', () => {
|
|||||||
category,
|
category,
|
||||||
orderId: 'somethingFake',
|
orderId: 'somethingFake',
|
||||||
price: '20000',
|
price: '20000',
|
||||||
})
|
}),
|
||||||
).toMatchObject({
|
).toMatchObject({
|
||||||
retCode: API_ERROR_CODE.ACCOUNT_NOT_UNIFIED,
|
retCode: API_ERROR_CODE.ACCOUNT_NOT_UNIFIED,
|
||||||
});
|
});
|
||||||
@@ -61,7 +61,7 @@ describe('Private Unified Margin REST API POST Endpoints', () => {
|
|||||||
category,
|
category,
|
||||||
orderId: 'somethingFake1',
|
orderId: 'somethingFake1',
|
||||||
orderFilter: 'Order',
|
orderFilter: 'Order',
|
||||||
})
|
}),
|
||||||
).toMatchObject({
|
).toMatchObject({
|
||||||
retCode: API_ERROR_CODE.ACCOUNT_NOT_UNIFIED,
|
retCode: API_ERROR_CODE.ACCOUNT_NOT_UNIFIED,
|
||||||
});
|
});
|
||||||
@@ -94,7 +94,7 @@ describe('Private Unified Margin REST API POST Endpoints', () => {
|
|||||||
price: '10002',
|
price: '10002',
|
||||||
timeInForce: 'FillOrKill',
|
timeInForce: 'FillOrKill',
|
||||||
},
|
},
|
||||||
])
|
]),
|
||||||
).toMatchObject({
|
).toMatchObject({
|
||||||
retCode: API_ERROR_CODE.ACCOUNT_NOT_UNIFIED,
|
retCode: API_ERROR_CODE.ACCOUNT_NOT_UNIFIED,
|
||||||
});
|
});
|
||||||
@@ -118,7 +118,7 @@ describe('Private Unified Margin REST API POST Endpoints', () => {
|
|||||||
orderLinkId: 'somethingFake3',
|
orderLinkId: 'somethingFake3',
|
||||||
qty: '6',
|
qty: '6',
|
||||||
},
|
},
|
||||||
])
|
]),
|
||||||
).toMatchObject({
|
).toMatchObject({
|
||||||
retCode: API_ERROR_CODE.ACCOUNT_NOT_UNIFIED,
|
retCode: API_ERROR_CODE.ACCOUNT_NOT_UNIFIED,
|
||||||
});
|
});
|
||||||
@@ -139,7 +139,7 @@ describe('Private Unified Margin REST API POST Endpoints', () => {
|
|||||||
symbol,
|
symbol,
|
||||||
orderLinkId: 'somethingFake3',
|
orderLinkId: 'somethingFake3',
|
||||||
},
|
},
|
||||||
])
|
]),
|
||||||
).toMatchObject({
|
).toMatchObject({
|
||||||
retCode: API_ERROR_CODE.ACCOUNT_NOT_UNIFIED,
|
retCode: API_ERROR_CODE.ACCOUNT_NOT_UNIFIED,
|
||||||
});
|
});
|
||||||
@@ -183,9 +183,10 @@ describe('Private Unified Margin REST API POST Endpoints', () => {
|
|||||||
from_account_type: 'SPOT',
|
from_account_type: 'SPOT',
|
||||||
to_account_type: 'CONTRACT',
|
to_account_type: 'CONTRACT',
|
||||||
transfer_id: 'testtransfer',
|
transfer_id: 'testtransfer',
|
||||||
})
|
}),
|
||||||
).toMatchObject({
|
).toMatchObject({
|
||||||
ret_code: API_ERROR_CODE.INVALID_API_KEY_OR_PERMISSIONS,
|
ret_code: API_ERROR_CODE.INVALID_API_KEY_OR_PERMISSIONS,
|
||||||
|
ret_msg: 'invalid api_key',
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user