mirror of
https://github.com/syuilo/ai.git
synced 2024-11-09 15:38:00 +00:00
21 lines
366 B
TypeScript
21 lines
366 B
TypeScript
import 藍 from '@/ai';
|
|
import { account } from '#/__mocks__/account';
|
|
import TestModule from '#/__modules__/test';
|
|
import { StreamingApi } from '#/__mocks__/ws';
|
|
|
|
process.env.NODE_ENV = 'test';
|
|
|
|
let ai: 藍;
|
|
|
|
beforeEach(() => {
|
|
ai = new 藍(account, [
|
|
new TestModule(),
|
|
]);
|
|
});
|
|
|
|
test('mention hook', async () => {
|
|
const streaming = new StreamingApi();
|
|
|
|
|
|
});
|