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({
|
await api.setMarginSwitch({
|
||||||
symbol,
|
symbol,
|
||||||
tradeMode: 1,
|
tradeMode: 1,
|
||||||
buyLeverage: '10',
|
buyLeverage: '5',
|
||||||
sellLeverage: '10',
|
sellLeverage: '5',
|
||||||
})
|
})
|
||||||
).toMatchObject({
|
).toMatchObject({
|
||||||
retCode: API_ERROR_CODE.CONTRACT_MARGIN_MODE_NOT_MODIFIED,
|
retCode: API_ERROR_CODE.CONTRACT_MARGIN_MODE_NOT_MODIFIED,
|
||||||
@@ -116,7 +116,7 @@ describe('Private Contract REST API POST Endpoints', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('setLeverage()', async () => {
|
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,
|
retCode: API_ERROR_CODE.CONTRACT_SET_LEVERAGE_NOT_MODIFIED,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ describe('Private USDC Perp REST API POST Endpoints', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('setLeverage()', async () => {
|
it('setLeverage()', async () => {
|
||||||
expect(await api.setLeverage(symbol, '10')).toMatchObject({
|
expect(await api.setLeverage(symbol, '5')).toMatchObject({
|
||||||
retCode: API_ERROR_CODE.LEVERAGE_NOT_MODIFIED,
|
retCode: API_ERROR_CODE.LEVERAGE_NOT_MODIFIED,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user