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