fix test names & cleaning

This commit is contained in:
tiagosiebler
2022-09-10 19:59:38 +01:00
parent d2b41848ec
commit fe49cf9b12
20 changed files with 21 additions and 32 deletions

View File

@@ -1,7 +1,7 @@
import { AccountAssetClient } from '../../src/'; import { AccountAssetClient } from '../../src/';
import { successResponseObject } from '../response.util'; import { successResponseObject } from '../response.util';
describe('Private Account Asset REST API Endpoints', () => { describe('Private Account Asset REST API GET Endpoints', () => {
const useLivenet = true; const useLivenet = true;
const API_KEY = process.env.API_KEY_COM; const API_KEY = process.env.API_KEY_COM;
const API_SECRET = process.env.API_SECRET_COM; const API_SECRET = process.env.API_SECRET_COM;

View File

@@ -1,7 +1,6 @@
import { API_ERROR_CODE, CopyTradingClient } from '../../src'; import { API_ERROR_CODE, CopyTradingClient } from '../../src';
import { successResponseObject } from '../response.util';
describe('Private Copy Trading REST API Endpoints', () => { describe('Private Copy Trading REST API GET Endpoints', () => {
const useLivenet = true; const useLivenet = true;
const API_KEY = process.env.API_KEY_COM; const API_KEY = process.env.API_KEY_COM;
const API_SECRET = process.env.API_SECRET_COM; const API_SECRET = process.env.API_SECRET_COM;

View File

@@ -1,7 +1,7 @@
import { InverseFuturesClient } from '../../src/inverse-futures-client'; import { InverseFuturesClient } from '../../src/inverse-futures-client';
import { successResponseList, successResponseObject } from '../response.util'; import { successResponseList, successResponseObject } from '../response.util';
describe('Public Inverse-Futures REST API GET Endpoints', () => { describe('Private Inverse-Futures REST API GET Endpoints', () => {
const useLivenet = true; const useLivenet = true;
const API_KEY = process.env.API_KEY_COM; const API_KEY = process.env.API_KEY_COM;
const API_SECRET = process.env.API_SECRET_COM; const API_SECRET = process.env.API_SECRET_COM;

View File

@@ -5,7 +5,7 @@ import {
successResponseObject, successResponseObject,
} from '../response.util'; } from '../response.util';
describe('Public Inverse Futures REST API Endpoints', () => { describe('Public Inverse-Futures REST API Endpoints', () => {
const useLivenet = true; const useLivenet = true;
const api = new InverseFuturesClient(undefined, undefined, useLivenet); const api = new InverseFuturesClient(undefined, undefined, useLivenet);

View File

@@ -1,7 +1,7 @@
import { InverseClient } from '../../src/'; import { InverseClient } from '../../src/';
import { successResponseList, successResponseObject } from '../response.util'; import { successResponseList, successResponseObject } from '../response.util';
describe('Private Inverse REST API Endpoints', () => { describe('Private Inverse REST API GET Endpoints', () => {
const useLivenet = true; const useLivenet = true;
const API_KEY = process.env.API_KEY_COM; const API_KEY = process.env.API_KEY_COM;
const API_SECRET = process.env.API_SECRET_COM; const API_SECRET = process.env.API_SECRET_COM;

View File

@@ -2,7 +2,7 @@ import { API_ERROR_CODE } from '../../src';
import { InverseClient } from '../../src/inverse-client'; import { InverseClient } from '../../src/inverse-client';
import { successResponseObject } from '../response.util'; import { successResponseObject } from '../response.util';
describe('Private Inverse REST API Endpoints', () => { describe('Private Inverse REST API POST Endpoints', () => {
const useLivenet = true; const useLivenet = true;
const API_KEY = process.env.API_KEY_COM; const API_KEY = process.env.API_KEY_COM;
const API_SECRET = process.env.API_SECRET_COM; const API_SECRET = process.env.API_SECRET_COM;

View File

@@ -1,7 +1,7 @@
import { LinearClient } from '../../src/linear-client'; import { LinearClient } from '../../src/linear-client';
import { successResponseList, successResponseObject } from '../response.util'; import { successResponseList, successResponseObject } from '../response.util';
describe('Public Linear REST API GET Endpoints', () => { describe('Private Linear REST API GET Endpoints', () => {
const useLivenet = true; const useLivenet = true;
const API_KEY = process.env.API_KEY_COM; const API_KEY = process.env.API_KEY_COM;
const API_SECRET = process.env.API_SECRET_COM; const API_SECRET = process.env.API_SECRET_COM;

View File

@@ -1,7 +1,7 @@
import { API_ERROR_CODE, LinearClient } from '../../src'; import { API_ERROR_CODE, LinearClient } from '../../src';
import { successResponseObject } from '../response.util'; import { successResponseObject } from '../response.util';
describe('Private Inverse-Futures REST API POST Endpoints', () => { describe('Private Linear REST API POST Endpoints', () => {
const useLivenet = true; const useLivenet = true;
const API_KEY = process.env.API_KEY_COM; const API_KEY = process.env.API_KEY_COM;
const API_SECRET = process.env.API_SECRET_COM; const API_SECRET = process.env.API_SECRET_COM;

View File

@@ -1,12 +1,7 @@
import { SpotClient } from '../../src'; import { SpotClient } from '../../src';
import { import { errorResponseObject, successResponseList } from '../response.util';
errorResponseObject,
notAuthenticatedError,
successResponseList,
successResponseObject,
} from '../response.util';
describe('Private Spot REST API Endpoints', () => { describe('Private Spot REST API GET Endpoints', () => {
const useLivenet = true; const useLivenet = true;
const API_KEY = process.env.API_KEY_COM; const API_KEY = process.env.API_KEY_COM;
const API_SECRET = process.env.API_SECRET_COM; const API_SECRET = process.env.API_SECRET_COM;

View File

@@ -1,7 +1,7 @@
import { API_ERROR_CODE, SpotClient } from '../../src'; import { API_ERROR_CODE, SpotClient } from '../../src';
import { successResponseObject } from '../response.util'; import { successResponseObject } from '../response.util';
describe('Private Inverse-Futures REST API POST Endpoints', () => { describe('Private Spot REST API POST Endpoints', () => {
const useLivenet = true; const useLivenet = true;
const API_KEY = process.env.API_KEY_COM; const API_KEY = process.env.API_KEY_COM;
const API_SECRET = process.env.API_SECRET_COM; const API_SECRET = process.env.API_SECRET_COM;

View File

@@ -7,7 +7,7 @@ import {
successResponseObjectV3, successResponseObjectV3,
} from '../response.util'; } from '../response.util';
describe('Private Spot REST API Endpoints', () => { describe('Private Spot REST API GET Endpoints', () => {
const useLivenet = true; const useLivenet = true;
const API_KEY = process.env.API_KEY_COM; const API_KEY = process.env.API_KEY_COM;
const API_SECRET = process.env.API_SECRET_COM; const API_SECRET = process.env.API_SECRET_COM;

View File

@@ -1,10 +1,7 @@
import { API_ERROR_CODE, SpotClientV3 } from '../../src'; import { API_ERROR_CODE, SpotClientV3 } from '../../src';
import { import { successResponseObjectV3 } from '../response.util';
successResponseObject,
successResponseObjectV3,
} from '../response.util';
describe('Private Inverse-Futures REST API POST Endpoints', () => { describe('Private Spot REST API POST Endpoints', () => {
const useLivenet = true; const useLivenet = true;
const API_KEY = process.env.API_KEY_COM; const API_KEY = process.env.API_KEY_COM;
const API_SECRET = process.env.API_SECRET_COM; const API_SECRET = process.env.API_SECRET_COM;

View File

@@ -1,8 +1,6 @@
import { SpotClientV3 } from '../../src'; import { SpotClientV3 } from '../../src';
import { import {
notAuthenticatedError, notAuthenticatedError,
successResponseList,
successResponseObject,
successResponseObjectV3, successResponseObjectV3,
} from '../response.util'; } from '../response.util';

View File

@@ -1,7 +1,7 @@
import { API_ERROR_CODE, UnifiedMarginClient } from '../../src'; import { API_ERROR_CODE, UnifiedMarginClient } from '../../src';
import { successResponseObjectV3 } from '../response.util'; import { successResponseObjectV3 } from '../response.util';
describe('Private Unified Margin REST API Endpoints', () => { describe('Private Unified Margin REST API GET Endpoints', () => {
const useLivenet = true; const useLivenet = true;
const API_KEY = process.env.API_KEY_COM; const API_KEY = process.env.API_KEY_COM;
const API_SECRET = process.env.API_SECRET_COM; const API_SECRET = process.env.API_SECRET_COM;

View File

@@ -1,6 +1,6 @@
import { API_ERROR_CODE, UnifiedMarginClient } from '../../src'; import { API_ERROR_CODE, UnifiedMarginClient } from '../../src';
describe('Private Unified Margin REST API Endpoints', () => { describe('Private Unified Margin REST API POST Endpoints', () => {
const useLivenet = true; const useLivenet = true;
const API_KEY = process.env.API_KEY_COM; const API_KEY = process.env.API_KEY_COM;
const API_SECRET = process.env.API_SECRET_COM; const API_SECRET = process.env.API_SECRET_COM;

View File

@@ -1,7 +1,7 @@
import { USDCOptionClient } from '../../../src'; import { USDCOptionClient } from '../../../src';
import { successResponseObjectV3 } from '../../response.util'; import { successResponseObjectV3 } from '../../response.util';
describe('Private Account Asset REST API Endpoints', () => { describe('Private USDC Options REST API GET Endpoints', () => {
const useLivenet = true; const useLivenet = true;
const API_KEY = process.env.API_KEY_COM; const API_KEY = process.env.API_KEY_COM;
const API_SECRET = process.env.API_SECRET_COM; const API_SECRET = process.env.API_SECRET_COM;

View File

@@ -1,7 +1,7 @@
import { API_ERROR_CODE, USDCOptionClient } from '../../../src'; import { API_ERROR_CODE, USDCOptionClient } from '../../../src';
import { successResponseObjectV3 } from '../../response.util'; import { successResponseObjectV3 } from '../../response.util';
describe('Private Account Asset REST API Endpoints', () => { describe('Private USDC Options REST API POST Endpoints', () => {
const useLivenet = true; const useLivenet = true;
const API_KEY = process.env.API_KEY_COM; const API_KEY = process.env.API_KEY_COM;
const API_SECRET = process.env.API_SECRET_COM; const API_SECRET = process.env.API_SECRET_COM;

View File

@@ -1,7 +1,7 @@
import { USDCPerpetualClient } from '../../../src'; import { USDCPerpetualClient } from '../../../src';
import { successResponseObjectV3 } from '../../response.util'; import { successResponseObjectV3 } from '../../response.util';
describe('Private Account Asset REST API Endpoints', () => { describe('Private USDC Perp REST API GET Endpoints', () => {
const useLivenet = true; const useLivenet = true;
const API_KEY = process.env.API_KEY_COM; const API_KEY = process.env.API_KEY_COM;
const API_SECRET = process.env.API_SECRET_COM; const API_SECRET = process.env.API_SECRET_COM;

View File

@@ -4,7 +4,7 @@ import {
successResponseObjectV3, successResponseObjectV3,
} from '../../response.util'; } from '../../response.util';
describe('Private Account Asset REST API Endpoints', () => { describe('Private USDC Perp REST API POST Endpoints', () => {
const useLivenet = true; const useLivenet = true;
const API_KEY = process.env.API_KEY_COM; const API_KEY = process.env.API_KEY_COM;
const API_SECRET = process.env.API_SECRET_COM; const API_SECRET = process.env.API_SECRET_COM;

View File

@@ -4,7 +4,7 @@ import {
successResponseObjectV3, successResponseObjectV3,
} from '../../response.util'; } from '../../response.util';
describe('Public USDC Options REST API Endpoints', () => { describe('Public USDC Perp REST API Endpoints', () => {
const useLivenet = true; const useLivenet = true;
const API_KEY = undefined; const API_KEY = undefined;
const API_SECRET = undefined; const API_SECRET = undefined;