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,11 +5,14 @@ import {
} from '../../response.util';
describe('Public USDC Perp REST API Endpoints', () => {
const useLivenet = true;
const API_KEY = undefined;
const API_SECRET = undefined;
const api = new USDCPerpetualClient(API_KEY, API_SECRET, useLivenet);
const api = new USDCPerpetualClient({
key: API_KEY,
secret: API_SECRET,
testnet: false,
});
const symbol = 'BTCPERP';
const category = 'PERPETUAL';