fix(): more changes to consistent 5x tests
This commit is contained in:
@@ -89,8 +89,8 @@ describe('Private Contract REST API POST Endpoints', () => {
|
||||
await api.setMarginSwitch({
|
||||
symbol,
|
||||
tradeMode: 1,
|
||||
buyLeverage: '10',
|
||||
sellLeverage: '10',
|
||||
buyLeverage: '5',
|
||||
sellLeverage: '5',
|
||||
})
|
||||
).toMatchObject({
|
||||
retCode: API_ERROR_CODE.CONTRACT_MARGIN_MODE_NOT_MODIFIED,
|
||||
@@ -116,7 +116,7 @@ describe('Private Contract REST API POST Endpoints', () => {
|
||||
});
|
||||
|
||||
it('setLeverage()', async () => {
|
||||
expect(await api.setLeverage(symbol, '10', '10')).toMatchObject({
|
||||
expect(await api.setLeverage(symbol, '5', '5')).toMatchObject({
|
||||
retCode: API_ERROR_CODE.CONTRACT_SET_LEVERAGE_NOT_MODIFIED,
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user