fix(): more changes to consistent 5x tests

This commit is contained in:
tiagosiebler
2023-04-02 11:00:17 +01:00
parent 6e7a949c60
commit 6eb84cc8cc
2 changed files with 4 additions and 4 deletions

View File

@@ -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,
});
});

View File

@@ -78,7 +78,7 @@ describe('Private USDC Perp REST API POST Endpoints', () => {
});
it('setLeverage()', async () => {
expect(await api.setLeverage(symbol, '10')).toMatchObject({
expect(await api.setLeverage(symbol, '5')).toMatchObject({
retCode: API_ERROR_CODE.LEVERAGE_NOT_MODIFIED,
});
});