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