fix conflicting tests
This commit is contained in:
@@ -73,7 +73,7 @@ describe('Private Contract REST API POST Endpoints', () => {
|
|||||||
it('setAutoAddMargin()', async () => {
|
it('setAutoAddMargin()', async () => {
|
||||||
expect(
|
expect(
|
||||||
await api.setAutoAddMargin({
|
await api.setAutoAddMargin({
|
||||||
autoAddMargin: 0,
|
autoAddMargin: 1,
|
||||||
side: 'Buy',
|
side: 'Buy',
|
||||||
symbol,
|
symbol,
|
||||||
positionIdx: 1,
|
positionIdx: 1,
|
||||||
@@ -88,7 +88,7 @@ describe('Private Contract REST API POST Endpoints', () => {
|
|||||||
expect(
|
expect(
|
||||||
await api.setMarginSwitch({
|
await api.setMarginSwitch({
|
||||||
symbol,
|
symbol,
|
||||||
tradeMode: 0,
|
tradeMode: 1,
|
||||||
buyLeverage: '5',
|
buyLeverage: '5',
|
||||||
sellLeverage: '5',
|
sellLeverage: '5',
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -176,7 +176,9 @@ describe('Private Linear REST API POST Endpoints', () => {
|
|||||||
margin: 5,
|
margin: 5,
|
||||||
})
|
})
|
||||||
).toMatchObject({
|
).toMatchObject({
|
||||||
ret_code: API_ERROR_CODE.ISOLATED_NOT_MODIFIED_LINEAR,
|
// ret_msg: '',
|
||||||
|
ret_code: API_ERROR_CODE.POSITION_SIZE_IS_ZERO,
|
||||||
|
// ret_code: API_ERROR_CODE.ISOLATED_NOT_MODIFIED_LINEAR,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user