Skip to content
Snippets Groups Projects
Commit e1317ce0 authored by syuilo's avatar syuilo
Browse files

test

parent a385bd02
No related branches found
No related tags found
No related merge requests found
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);
});
});
});
......@@ -44,4 +44,8 @@ describe('API', () => {
body: { i: 'TOKEN' }
});
});
// TODO: APIエラーのテスト
// TODO: ネットワークエラーのテスト
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment