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

@@ -2,11 +2,14 @@ import { AccountAssetClient } from '../../src';
import { successResponseObject } from '../response.util';
describe('Public Account Asset REST API Endpoints', () => {
const useLivenet = true;
const API_KEY = undefined;
const API_SECRET = undefined;
const api = new AccountAssetClient(API_KEY, API_SECRET, useLivenet);
const api = new AccountAssetClient({
key: API_KEY,
secret: API_SECRET,
testnet: false,
});
it('getSupportedDepositList()', async () => {
expect(await api.getSupportedDepositList()).toMatchObject(