refactor tests for new constructor pattern
This commit is contained in:
@@ -3,7 +3,6 @@ import { InverseClient } from '../../src/inverse-client';
|
||||
import { successResponseObject } from '../response.util';
|
||||
|
||||
describe('Private Inverse REST API POST Endpoints', () => {
|
||||
const useLivenet = true;
|
||||
const API_KEY = process.env.API_KEY_COM;
|
||||
const API_SECRET = process.env.API_SECRET_COM;
|
||||
|
||||
@@ -12,7 +11,11 @@ describe('Private Inverse REST API POST Endpoints', () => {
|
||||
expect(API_SECRET).toStrictEqual(expect.any(String));
|
||||
});
|
||||
|
||||
const api = new InverseClient(API_KEY, API_SECRET, useLivenet);
|
||||
const api = new InverseClient({
|
||||
key: API_KEY,
|
||||
secret: API_SECRET,
|
||||
testnet: false,
|
||||
});
|
||||
|
||||
const symbol = 'BTCUSD';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user