Files
bybit-api/test/copy-trading/public.read.test.ts
2022-09-19 23:48:35 +01:00

30 lines
748 B
TypeScript

import { CopyTradingClient } from '../../src';
import { successResponseObject } from '../response.util';
describe('Public Copy Trading REST API Endpoints', () => {
const API_KEY = undefined;
const API_SECRET = undefined;
const api = new CopyTradingClient({
key: API_KEY,
secret: API_SECRET,
testnet: false,
});
it('getSymbols()', async () => {
expect(await api.getSymbols()).toMatchObject({
result: {
list: expect.any(Array),
},
});
});
it('getServerTime()', async () => {
expect(await api.getServerTime()).toMatchObject(successResponseObject());
});
it('getAnnouncements()', async () => {
expect(await api.getAnnouncements()).toMatchObject(successResponseObject());
});
});