move test to private

This commit is contained in:
tiagosiebler
2022-05-07 22:23:58 +01:00
parent d11fbfa227
commit 72ce693d24
3 changed files with 7 additions and 5 deletions

View File

@@ -408,7 +408,7 @@ export class InverseClient extends BaseRestClient {
*/ */
getRiskLimitList(): GenericAPIResponse { getRiskLimitList(): GenericAPIResponse {
return this.get('open-api/wallet/risk-limit/list'); return this.getPrivate('open-api/wallet/risk-limit/list');
} }
setRiskLimit(params: { setRiskLimit(params: {

View File

@@ -80,6 +80,12 @@ describe('Private Inverse REST API Endpoints', () => {
); );
}); });
it('getRiskLimitList()', async () => {
expect(await api.getRiskLimitList()).toMatchObject(
successResponseList('ok')
);
});
it('getClosedPnl()', async () => { it('getClosedPnl()', async () => {
expect(await api.getClosedPnl({ symbol: symbol })).toMatchObject( expect(await api.getClosedPnl({ symbol: symbol })).toMatchObject(
successResponseObject() successResponseObject()

View File

@@ -70,10 +70,6 @@ describe('Public Inverse REST API Endpoints', () => {
).toMatchObject(successResponseList()); ).toMatchObject(successResponseList());
}); });
it('getRiskLimitList()', async () => {
expect(await api.getRiskLimitList()).toMatchObject(successResponseList());
});
it('getLastFundingRate()', async () => { it('getLastFundingRate()', async () => {
expect(await api.getLastFundingRate({ symbol })).toMatchObject( expect(await api.getLastFundingRate({ symbol })).toMatchObject(
successResponseObject() successResponseObject()