smartai/test/test.ts

18 lines
431 B
TypeScript
Raw Normal View History

2024-03-30 11:42:44 +00:00
import { expect, expectAsync, tap } from '@push.rocks/tapbundle';
2024-04-25 08:49:07 +00:00
import * as qenv from '@push.rocks/qenv';
2024-03-30 11:42:44 +00:00
2024-04-25 08:49:07 +00:00
const testQenv = new qenv.Qenv('./', './.nogit/');
import * as smartai from '../ts/index.js';
let testSmartai: smartai.SmartAi;
tap.test('should create a smartai instance', async () => {
testSmartai = new smartai.SmartAi({
openaiToken: await testQenv.getEnvVarOnDemand('OPENAI_TOKEN'),
});
2024-03-30 11:42:44 +00:00
})
tap.start()