refactor tests for new constructor pattern

This commit is contained in:
tiagosiebler
2022-09-19 23:48:35 +01:00
parent f7d59b48c1
commit d3fa937cdf
30 changed files with 160 additions and 102 deletions

View File

@@ -5,7 +5,6 @@ import {
} from '../../response.util';
describe('Private USDC Perp REST API POST Endpoints', () => {
const useLivenet = true;
const API_KEY = process.env.API_KEY_COM;
const API_SECRET = process.env.API_SECRET_COM;
@@ -14,7 +13,11 @@ describe('Private USDC Perp REST API POST Endpoints', () => {
expect(API_SECRET).toStrictEqual(expect.any(String));
});
const api = new USDCPerpetualClient(API_KEY, API_SECRET, useLivenet);
const api = new USDCPerpetualClient({
key: API_KEY,
secret: API_SECRET,
testnet: false,
});
const symbol = 'BTCPERP';