Workspaces refactor #86

Merged
norm merged 189 commits from refactor/workspaces into main 2022-08-28 14:46:45 +00:00
2 changed files with 16 additions and 0 deletions
Showing only changes of commit e1317ce098 - Show all commits

12
test-d/streaming.ts Normal file
View file

@ -0,0 +1,12 @@
import { expectType } from 'tsd';
import * as Misskey from '../src';
describe('Streaming', () => {
test('emit type', async () => {
const stream = new Misskey.Stream('https://misskey.test', { token: 'TOKEN' });
const mainChannel = stream.useSharedConnection('main');
mainChannel.on('notification', notification => {
expectType<Misskey.entities.Notification>(notification);
});
});
});

View file

@ -44,4 +44,8 @@ describe('API', () => {
body: { i: 'TOKEN' }
});
});
// TODO: APIエラーのテスト
// TODO: ネットワークエラーのテスト
});