chore(): route tests via proxy instead of github CI address

This commit is contained in:
tiagosiebler
2023-08-18 16:21:13 +01:00
parent 9bc1ff89c6
commit 21ac313f38
37 changed files with 581 additions and 415 deletions

View File

@@ -1,4 +1,5 @@
import { API_ERROR_CODE, CopyTradingClient } from '../../src';
import { getTestProxy } from '../proxy.util';
import { successResponseObjectV3 } from '../response.util';
describe('Private Copy Trading REST API GET Endpoints', () => {
@@ -10,11 +11,14 @@ describe('Private Copy Trading REST API GET Endpoints', () => {
expect(API_SECRET).toStrictEqual(expect.any(String));
});
const api = new CopyTradingClient({
key: API_KEY,
secret: API_SECRET,
testnet: false,
});
const api = new CopyTradingClient(
{
key: API_KEY,
secret: API_SECRET,
testnet: false,
},
getTestProxy(),
);
// Don't have copy trading properly enabled on the test account, so testing is very light
// (just make sure auth works and endpoint doesn't throw)

View File

@@ -1,15 +1,19 @@
import { CopyTradingClient } from '../../src';
import { getTestProxy } from '../proxy.util';
import { successResponseObject } from '../response.util';
describe('Public Copy Trading REST API Endpoints', () => {
const API_KEY = undefined;
const API_SECRET = undefined;
const api = new CopyTradingClient({
key: API_KEY,
secret: API_SECRET,
testnet: false,
});
const api = new CopyTradingClient(
{
key: API_KEY,
secret: API_SECRET,
testnet: false,
},
getTestProxy(),
);
it('getSymbols()', async () => {
expect(await api.getSymbols()).toMatchObject({