ai/test/core.ts

21 lines
366 B
TypeScript
Raw Normal View History

2020-09-19 01:40:44 +00:00
import from '@/ai';
2020-09-20 11:41:10 +00:00
import { account } from '#/__mocks__/account';
import TestModule from '#/__modules__/test';
import { StreamingApi } from '#/__mocks__/ws';
2020-09-19 01:40:44 +00:00
process.env.NODE_ENV = 'test';
let ai: ;
beforeEach(() => {
ai = new (account, [
new TestModule(),
]);
});
test('mention hook', async () => {
const streaming = new StreamingApi();
});