diff --git a/test/account-asset/private.read.test.ts b/test/account-asset/private.read.test.ts deleted file mode 100644 index 371f2c7..0000000 --- a/test/account-asset/private.read.test.ts +++ /dev/null @@ -1,79 +0,0 @@ -import { API_ERROR_CODE, AccountAssetClient } from '../../src/'; -import { getTestProxy } from '../proxy.util'; -import { successResponseObject } from '../response.util'; - -describe('Private Account Asset REST API GET Endpoints', () => { - const API_KEY = process.env.API_KEY_COM; - const API_SECRET = process.env.API_SECRET_COM; - - it('should have api credentials to test with', () => { - expect(API_KEY).toStrictEqual(expect.any(String)); - expect(API_SECRET).toStrictEqual(expect.any(String)); - }); - - const api = new AccountAssetClient( - { - key: API_KEY, - secret: API_SECRET, - testnet: false, - }, - getTestProxy(), - ); - - it('getInternalTransfers()', async () => { - expect(await api.getInternalTransfers()).toMatchObject( - successResponseObject(), - ); - }); - - it('getSubAccountTransfers()', async () => { - expect(await api.getSubAccountTransfers()).toMatchObject({ - ...successResponseObject(), - ret_code: API_ERROR_CODE.INCORRECT_API_KEY_PERMISSIONS, - }); - }); - - it('getSubAccounts()', async () => { - expect(await api.getSubAccounts()).toMatchObject({ - ...successResponseObject(), - ret_code: API_ERROR_CODE.INCORRECT_API_KEY_PERMISSIONS, - }); - }); - - it.skip('getUniversalTransfers()', async () => { - expect(await api.getInternalTransfers()).toMatchObject( - successResponseObject(), - ); - }); - - it('getDepositRecords()', async () => { - expect(await api.getDepositRecords()).toMatchObject( - successResponseObject(), - ); - }); - - it('getWithdrawRecords()', async () => { - expect(await api.getWithdrawRecords()).toMatchObject( - successResponseObject(), - ); - }); - - it('getCoinInformation()', async () => { - expect(await api.getCoinInformation()).toMatchObject( - successResponseObject(), - ); - }); - - it('getAssetInformation()', async () => { - expect(await api.getAssetInformation()).toMatchObject( - successResponseObject(), - ); - }); - - it('getDepositAddress()', async () => { - expect(await api.getDepositAddress('BTC')).toMatchObject({ - ...successResponseObject(), - ret_code: API_ERROR_CODE.NOT_SUPPORTED_FOR_SUBACCOUNTS, - }); - }); -}); diff --git a/test/account-asset/public.read.test.ts b/test/account-asset/public.read.test.ts deleted file mode 100644 index 8e6ae7a..0000000 --- a/test/account-asset/public.read.test.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { AccountAssetClient } from '../../src'; -import { getTestProxy } from '../proxy.util'; -import { successResponseObject } from '../response.util'; - -describe('Public Account Asset REST API Endpoints', () => { - const API_KEY = undefined; - const API_SECRET = undefined; - - const api = new AccountAssetClient( - { - key: API_KEY, - secret: API_SECRET, - testnet: false, - }, - getTestProxy(), - ); - - it('getSupportedDepositList()', async () => { - expect(await api.getSupportedDepositList()).toMatchObject( - successResponseObject(), - ); - }); - - it('getServerTime()', async () => { - expect(await api.getServerTime()).toMatchObject(successResponseObject()); - }); -});