fix conflicting tests
This commit is contained in:
@@ -73,7 +73,7 @@ describe('Private Contract REST API POST Endpoints', () => {
|
||||
it('setAutoAddMargin()', async () => {
|
||||
expect(
|
||||
await api.setAutoAddMargin({
|
||||
autoAddMargin: 0,
|
||||
autoAddMargin: 1,
|
||||
side: 'Buy',
|
||||
symbol,
|
||||
positionIdx: 1,
|
||||
@@ -88,7 +88,7 @@ describe('Private Contract REST API POST Endpoints', () => {
|
||||
expect(
|
||||
await api.setMarginSwitch({
|
||||
symbol,
|
||||
tradeMode: 0,
|
||||
tradeMode: 1,
|
||||
buyLeverage: '5',
|
||||
sellLeverage: '5',
|
||||
})
|
||||
|
||||
@@ -176,7 +176,9 @@ describe('Private Linear REST API POST Endpoints', () => {
|
||||
margin: 5,
|
||||
})
|
||||
).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