diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-04-23 02:50:59 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-04-23 02:50:59 +0900 |
| commit | f31f986d669e5f20de1f949331a5f06ad3359654 (patch) | |
| tree | 0970e831efa80a069d2b475ed0c8ffe704e0dfff /test | |
| parent | Add @rinsuki into collaborators (#4762) (diff) | |
| download | sharkey-f31f986d669e5f20de1f949331a5f06ad3359654.tar.gz sharkey-f31f986d669e5f20de1f949331a5f06ad3359654.tar.bz2 sharkey-f31f986d669e5f20de1f949331a5f06ad3359654.zip | |
Fix #4768
Diffstat (limited to 'test')
| -rw-r--r-- | test/streaming.ts | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/streaming.ts b/test/streaming.ts index 2dfede1380..6b9ef9cea5 100644 --- a/test/streaming.ts +++ b/test/streaming.ts @@ -594,6 +594,31 @@ describe('Streaming', () => { text: 'foo' }); })); + + it('ホーム投稿は流れない', () => new Promise(async done => { + const alice = await signup({ username: 'alice' }); + const bob = await signup({ username: 'bob' }); + + let fired = false; + + const ws = await connectStream(alice, 'globalTimeline', ({ type, body }) => { + if (type == 'note') { + fired = true; + } + }); + + // ホーム投稿 + post(bob, { + text: 'foo', + visibility: 'home' + }); + + setTimeout(() => { + assert.strictEqual(fired, false); + ws.close(); + done(); + }, 3000); + })); }); describe('UserList Timeline', () => { |