From 72ce693d24a1755ebfe1ad7396a1c54dba893e2c Mon Sep 17 00:00:00 2001 From: tiagosiebler Date: Sat, 7 May 2022 22:23:58 +0100 Subject: [PATCH] move test to private --- src/inverse-client.ts | 2 +- test/inverse/private.read.test.ts | 6 ++++++ test/inverse/public.test.ts | 4 ---- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/inverse-client.ts b/src/inverse-client.ts index 21f9d80..ca127cf 100644 --- a/src/inverse-client.ts +++ b/src/inverse-client.ts @@ -408,7 +408,7 @@ export class InverseClient extends BaseRestClient { */ getRiskLimitList(): GenericAPIResponse { - return this.get('open-api/wallet/risk-limit/list'); + return this.getPrivate('open-api/wallet/risk-limit/list'); } setRiskLimit(params: { diff --git a/test/inverse/private.read.test.ts b/test/inverse/private.read.test.ts index b0607a6..349db3e 100644 --- a/test/inverse/private.read.test.ts +++ b/test/inverse/private.read.test.ts @@ -80,6 +80,12 @@ describe('Private Inverse REST API Endpoints', () => { ); }); + it('getRiskLimitList()', async () => { + expect(await api.getRiskLimitList()).toMatchObject( + successResponseList('ok') + ); + }); + it('getClosedPnl()', async () => { expect(await api.getClosedPnl({ symbol: symbol })).toMatchObject( successResponseObject() diff --git a/test/inverse/public.test.ts b/test/inverse/public.test.ts index 144f390..a61cebf 100644 --- a/test/inverse/public.test.ts +++ b/test/inverse/public.test.ts @@ -70,10 +70,6 @@ describe('Public Inverse REST API Endpoints', () => { ).toMatchObject(successResponseList()); }); - it('getRiskLimitList()', async () => { - expect(await api.getRiskLimitList()).toMatchObject(successResponseList()); - }); - it('getLastFundingRate()', async () => { expect(await api.getLastFundingRate({ symbol })).toMatchObject( successResponseObject()