mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-13 21:40:45 +01:00
Refactoring
This commit is contained in:
parent
3330c3f548
commit
92b45d1a9d
1 changed files with 24 additions and 24 deletions
|
@ -45,12 +45,13 @@ describe('Streaming', () => {
|
||||||
server.close();
|
server.close();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('投稿がタイムラインに流れる', done => {
|
it('投稿がタイムラインに流れる', () => new Promise(async done => {
|
||||||
const post = {
|
const post = {
|
||||||
text: 'foo'
|
text: 'foo'
|
||||||
};
|
};
|
||||||
|
|
||||||
signup().then(me => {
|
const me = await signup();
|
||||||
|
|
||||||
const ws = new WebSocket(`ws://localhost/streaming?i=${me.token}`);
|
const ws = new WebSocket(`ws://localhost/streaming?i=${me.token}`);
|
||||||
|
|
||||||
ws.on('open', () => {
|
ws.on('open', () => {
|
||||||
|
@ -76,6 +77,5 @@ describe('Streaming', () => {
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
});
|
}));
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue