2023-06-01 10:07:07 +10:00
|
|
|
import { api_calls } from '../../src/index.js';
|
2022-08-12 19:25:16 +10:00
|
|
|
|
|
|
|
async function example() {
|
2023-06-01 10:07:07 +10:00
|
|
|
const response = await api_calls.get_api_call_metrics({ group_by: 'email' });
|
2022-08-12 19:25:16 +10:00
|
|
|
if ('error_code' in response) throw response;
|
|
|
|
|
|
|
|
return response;
|
|
|
|
}
|
|
|
|
|
2023-06-01 10:07:07 +10:00
|
|
|
describe('Testing api_calls.get_api_call_metrics', () => {
|
2022-08-12 19:25:16 +10:00
|
|
|
it('should be truthy or throw', async () => {
|
|
|
|
expect(await example()).toBeTruthy();
|
|
|
|
});
|
|
|
|
});
|