19 lines
435 B
TypeScript
19 lines
435 B
TypeScript
![]() |
import { api_calls } from '../../src/index.js';
|
||
|
|
||
|
async function example() {
|
||
|
const response = await api_calls.list_api_calls({
|
||
|
limit: 7,
|
||
|
page_token: 'string',
|
||
|
sort_by: 'created-at-ascending',
|
||
|
});
|
||
|
if ('error_code' in response) throw response;
|
||
|
|
||
|
return response;
|
||
|
}
|
||
|
|
||
|
describe('Testing api_calls.list_api_calls', () => {
|
||
|
it('should be truthy or throw', async () => {
|
||
|
expect(await example()).toBeTruthy();
|
||
|
});
|
||
|
});
|