2023-06-01 10:07:07 +10:00
|
|
|
import { executor } 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 executor.create_executor_term();
|
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 executor.create_executor_term', () => {
|
2022-08-12 19:25:16 +10:00
|
|
|
it('should be truthy or throw', async () => {
|
|
|
|
expect(await example()).toBeTruthy();
|
|
|
|
});
|
|
|
|
});
|