From fe49cf9b12f1e5daa0b41b1a5a98b3dfd26ebb4c Mon Sep 17 00:00:00 2001 From: tiagosiebler Date: Sat, 10 Sep 2022 19:59:38 +0100 Subject: [PATCH] fix test names & cleaning --- test/account-asset/private.read.test.ts | 2 +- test/copy-trading/private.read.test.ts | 3 +-- test/inverse-futures/private.read.test.ts | 2 +- test/inverse-futures/public.test.ts | 2 +- test/inverse/private.read.test.ts | 2 +- test/inverse/private.write.test.ts | 2 +- test/linear/private.read.test.ts | 2 +- test/linear/private.write.test.ts | 2 +- test/spot/private.v1.read.test.ts | 9 ++------- test/spot/private.v1.write.test.ts | 2 +- test/spot/private.v3.read.test.ts | 2 +- test/spot/private.v3.write.test.ts | 7 ++----- test/spot/public.v3.test.ts | 2 -- test/unified-margin/private.read.test.ts | 2 +- test/unified-margin/private.write.test.ts | 2 +- test/usdc/options/private.read.test.ts | 2 +- test/usdc/options/private.write.test.ts | 2 +- test/usdc/perpetual/private.read.test.ts | 2 +- test/usdc/perpetual/private.write.test.ts | 2 +- test/usdc/perpetual/public.read.test.ts | 2 +- 20 files changed, 21 insertions(+), 32 deletions(-) diff --git a/test/account-asset/private.read.test.ts b/test/account-asset/private.read.test.ts index c060274..36f1458 100644 --- a/test/account-asset/private.read.test.ts +++ b/test/account-asset/private.read.test.ts @@ -1,7 +1,7 @@ import { AccountAssetClient } from '../../src/'; import { successResponseObject } from '../response.util'; -describe('Private Account Asset REST API Endpoints', () => { +describe('Private Account Asset REST API GET Endpoints', () => { const useLivenet = true; const API_KEY = process.env.API_KEY_COM; const API_SECRET = process.env.API_SECRET_COM; diff --git a/test/copy-trading/private.read.test.ts b/test/copy-trading/private.read.test.ts index 44825c9..d0637ea 100644 --- a/test/copy-trading/private.read.test.ts +++ b/test/copy-trading/private.read.test.ts @@ -1,7 +1,6 @@ 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 API_KEY = process.env.API_KEY_COM; const API_SECRET = process.env.API_SECRET_COM; diff --git a/test/inverse-futures/private.read.test.ts b/test/inverse-futures/private.read.test.ts index 6e24cf5..821d82b 100644 --- a/test/inverse-futures/private.read.test.ts +++ b/test/inverse-futures/private.read.test.ts @@ -1,7 +1,7 @@ import { InverseFuturesClient } from '../../src/inverse-futures-client'; 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 API_KEY = process.env.API_KEY_COM; const API_SECRET = process.env.API_SECRET_COM; diff --git a/test/inverse-futures/public.test.ts b/test/inverse-futures/public.test.ts index 24ba232..fd34263 100644 --- a/test/inverse-futures/public.test.ts +++ b/test/inverse-futures/public.test.ts @@ -5,7 +5,7 @@ import { successResponseObject, } from '../response.util'; -describe('Public Inverse Futures REST API Endpoints', () => { +describe('Public Inverse-Futures REST API Endpoints', () => { const useLivenet = true; const api = new InverseFuturesClient(undefined, undefined, useLivenet); diff --git a/test/inverse/private.read.test.ts b/test/inverse/private.read.test.ts index 4a3f076..d0b9ee9 100644 --- a/test/inverse/private.read.test.ts +++ b/test/inverse/private.read.test.ts @@ -1,7 +1,7 @@ import { InverseClient } from '../../src/'; import { successResponseList, successResponseObject } from '../response.util'; -describe('Private Inverse REST API Endpoints', () => { +describe('Private Inverse REST API GET Endpoints', () => { const useLivenet = true; const API_KEY = process.env.API_KEY_COM; const API_SECRET = process.env.API_SECRET_COM; diff --git a/test/inverse/private.write.test.ts b/test/inverse/private.write.test.ts index 52a2b19..f667045 100644 --- a/test/inverse/private.write.test.ts +++ b/test/inverse/private.write.test.ts @@ -2,7 +2,7 @@ import { API_ERROR_CODE } from '../../src'; import { InverseClient } from '../../src/inverse-client'; import { successResponseObject } from '../response.util'; -describe('Private Inverse REST API Endpoints', () => { +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; diff --git a/test/linear/private.read.test.ts b/test/linear/private.read.test.ts index 5b5179b..9eef850 100644 --- a/test/linear/private.read.test.ts +++ b/test/linear/private.read.test.ts @@ -1,7 +1,7 @@ import { LinearClient } from '../../src/linear-client'; import { successResponseList, successResponseObject } from '../response.util'; -describe('Public Linear REST API GET Endpoints', () => { +describe('Private Linear REST API GET Endpoints', () => { const useLivenet = true; const API_KEY = process.env.API_KEY_COM; const API_SECRET = process.env.API_SECRET_COM; diff --git a/test/linear/private.write.test.ts b/test/linear/private.write.test.ts index 9747029..dd920f1 100644 --- a/test/linear/private.write.test.ts +++ b/test/linear/private.write.test.ts @@ -1,7 +1,7 @@ import { API_ERROR_CODE, LinearClient } from '../../src'; import { successResponseObject } from '../response.util'; -describe('Private Inverse-Futures REST API POST Endpoints', () => { +describe('Private Linear REST API POST Endpoints', () => { const useLivenet = true; const API_KEY = process.env.API_KEY_COM; const API_SECRET = process.env.API_SECRET_COM; diff --git a/test/spot/private.v1.read.test.ts b/test/spot/private.v1.read.test.ts index bbc6182..518e853 100644 --- a/test/spot/private.v1.read.test.ts +++ b/test/spot/private.v1.read.test.ts @@ -1,12 +1,7 @@ import { SpotClient } from '../../src'; -import { - errorResponseObject, - notAuthenticatedError, - successResponseList, - successResponseObject, -} from '../response.util'; +import { errorResponseObject, successResponseList } from '../response.util'; -describe('Private Spot REST API Endpoints', () => { +describe('Private Spot REST API GET Endpoints', () => { const useLivenet = true; const API_KEY = process.env.API_KEY_COM; const API_SECRET = process.env.API_SECRET_COM; diff --git a/test/spot/private.v1.write.test.ts b/test/spot/private.v1.write.test.ts index 4f3ef5e..4b678de 100644 --- a/test/spot/private.v1.write.test.ts +++ b/test/spot/private.v1.write.test.ts @@ -1,7 +1,7 @@ import { API_ERROR_CODE, SpotClient } from '../../src'; import { successResponseObject } from '../response.util'; -describe('Private Inverse-Futures REST API POST Endpoints', () => { +describe('Private Spot REST API POST Endpoints', () => { const useLivenet = true; const API_KEY = process.env.API_KEY_COM; const API_SECRET = process.env.API_SECRET_COM; diff --git a/test/spot/private.v3.read.test.ts b/test/spot/private.v3.read.test.ts index 003b2dc..b1d0680 100644 --- a/test/spot/private.v3.read.test.ts +++ b/test/spot/private.v3.read.test.ts @@ -7,7 +7,7 @@ import { successResponseObjectV3, } from '../response.util'; -describe('Private Spot REST API Endpoints', () => { +describe('Private Spot REST API GET Endpoints', () => { const useLivenet = true; const API_KEY = process.env.API_KEY_COM; const API_SECRET = process.env.API_SECRET_COM; diff --git a/test/spot/private.v3.write.test.ts b/test/spot/private.v3.write.test.ts index b226292..95ad6e7 100644 --- a/test/spot/private.v3.write.test.ts +++ b/test/spot/private.v3.write.test.ts @@ -1,10 +1,7 @@ import { API_ERROR_CODE, SpotClientV3 } from '../../src'; -import { - successResponseObject, - successResponseObjectV3, -} from '../response.util'; +import { successResponseObjectV3 } from '../response.util'; -describe('Private Inverse-Futures REST API POST Endpoints', () => { +describe('Private Spot REST API POST Endpoints', () => { const useLivenet = true; const API_KEY = process.env.API_KEY_COM; const API_SECRET = process.env.API_SECRET_COM; diff --git a/test/spot/public.v3.test.ts b/test/spot/public.v3.test.ts index 13dbad4..e18f260 100644 --- a/test/spot/public.v3.test.ts +++ b/test/spot/public.v3.test.ts @@ -1,8 +1,6 @@ import { SpotClientV3 } from '../../src'; import { notAuthenticatedError, - successResponseList, - successResponseObject, successResponseObjectV3, } from '../response.util'; diff --git a/test/unified-margin/private.read.test.ts b/test/unified-margin/private.read.test.ts index 1348ffb..c5093b9 100644 --- a/test/unified-margin/private.read.test.ts +++ b/test/unified-margin/private.read.test.ts @@ -1,7 +1,7 @@ import { API_ERROR_CODE, UnifiedMarginClient } from '../../src'; import { successResponseObjectV3 } from '../response.util'; -describe('Private Unified Margin REST API Endpoints', () => { +describe('Private Unified Margin REST API GET Endpoints', () => { const useLivenet = true; const API_KEY = process.env.API_KEY_COM; const API_SECRET = process.env.API_SECRET_COM; diff --git a/test/unified-margin/private.write.test.ts b/test/unified-margin/private.write.test.ts index 39a8112..3e8d297 100644 --- a/test/unified-margin/private.write.test.ts +++ b/test/unified-margin/private.write.test.ts @@ -1,6 +1,6 @@ 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 API_KEY = process.env.API_KEY_COM; const API_SECRET = process.env.API_SECRET_COM; diff --git a/test/usdc/options/private.read.test.ts b/test/usdc/options/private.read.test.ts index 04f446e..cd31815 100644 --- a/test/usdc/options/private.read.test.ts +++ b/test/usdc/options/private.read.test.ts @@ -1,7 +1,7 @@ import { USDCOptionClient } from '../../../src'; import { successResponseObjectV3 } from '../../response.util'; -describe('Private Account Asset REST API Endpoints', () => { +describe('Private USDC Options REST API GET Endpoints', () => { const useLivenet = true; const API_KEY = process.env.API_KEY_COM; const API_SECRET = process.env.API_SECRET_COM; diff --git a/test/usdc/options/private.write.test.ts b/test/usdc/options/private.write.test.ts index 7a6f9c8..5bd48a7 100644 --- a/test/usdc/options/private.write.test.ts +++ b/test/usdc/options/private.write.test.ts @@ -1,7 +1,7 @@ import { API_ERROR_CODE, USDCOptionClient } from '../../../src'; import { successResponseObjectV3 } from '../../response.util'; -describe('Private Account Asset REST API Endpoints', () => { +describe('Private USDC Options REST API POST Endpoints', () => { const useLivenet = true; const API_KEY = process.env.API_KEY_COM; const API_SECRET = process.env.API_SECRET_COM; diff --git a/test/usdc/perpetual/private.read.test.ts b/test/usdc/perpetual/private.read.test.ts index ae86d70..876aeac 100644 --- a/test/usdc/perpetual/private.read.test.ts +++ b/test/usdc/perpetual/private.read.test.ts @@ -1,7 +1,7 @@ import { USDCPerpetualClient } from '../../../src'; import { successResponseObjectV3 } from '../../response.util'; -describe('Private Account Asset REST API Endpoints', () => { +describe('Private USDC Perp REST API GET Endpoints', () => { const useLivenet = true; const API_KEY = process.env.API_KEY_COM; const API_SECRET = process.env.API_SECRET_COM; diff --git a/test/usdc/perpetual/private.write.test.ts b/test/usdc/perpetual/private.write.test.ts index 97637a0..9401a37 100644 --- a/test/usdc/perpetual/private.write.test.ts +++ b/test/usdc/perpetual/private.write.test.ts @@ -4,7 +4,7 @@ import { successResponseObjectV3, } from '../../response.util'; -describe('Private Account Asset REST API Endpoints', () => { +describe('Private USDC Perp REST API POST Endpoints', () => { const useLivenet = true; const API_KEY = process.env.API_KEY_COM; const API_SECRET = process.env.API_SECRET_COM; diff --git a/test/usdc/perpetual/public.read.test.ts b/test/usdc/perpetual/public.read.test.ts index 68a902a..161c580 100644 --- a/test/usdc/perpetual/public.read.test.ts +++ b/test/usdc/perpetual/public.read.test.ts @@ -4,7 +4,7 @@ import { successResponseObjectV3, } from '../../response.util'; -describe('Public USDC Options REST API Endpoints', () => { +describe('Public USDC Perp REST API Endpoints', () => { const useLivenet = true; const API_KEY = undefined; const API_SECRET = undefined;