From 87d3a06dcd6a76120789c050dd6a0c7111bf7224 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 8 Apr 2019 23:05:41 +0900 Subject: revert rename --- test/streaming.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'test') diff --git a/test/streaming.ts b/test/streaming.ts index 74a5aaa0b4..7594728618 100644 --- a/test/streaming.ts +++ b/test/streaming.ts @@ -381,11 +381,11 @@ describe('Streaming', () => { })); }); - describe('Social Timeline', () => { + describe('Hybrid Timeline', () => { it('自分の投稿が流れる', () => new Promise(async done => { const me = await signup(); - const ws = await connectStream(me, 'socialTimeline', ({ type, body }) => { + const ws = await connectStream(me, 'hybridTimeline', ({ type, body }) => { if (type == 'note') { assert.deepStrictEqual(body.userId, me.id); ws.close(); @@ -402,7 +402,7 @@ describe('Streaming', () => { const alice = await signup({ username: 'alice' }); const bob = await signup({ username: 'bob' }); - const ws = await connectStream(alice, 'socialTimeline', ({ type, body }) => { + const ws = await connectStream(alice, 'hybridTimeline', ({ type, body }) => { if (type == 'note') { assert.deepStrictEqual(body.userId, bob.id); ws.close(); @@ -422,7 +422,7 @@ describe('Streaming', () => { // Alice が Bob をフォロー await follow(alice, bob); - const ws = await connectStream(alice, 'socialTimeline', ({ type, body }) => { + const ws = await connectStream(alice, 'hybridTimeline', ({ type, body }) => { if (type == 'note') { assert.deepStrictEqual(body.userId, bob.id); ws.close(); @@ -441,7 +441,7 @@ describe('Streaming', () => { let fired = false; - const ws = await connectStream(alice, 'socialTimeline', ({ type, body }) => { + const ws = await connectStream(alice, 'hybridTimeline', ({ type, body }) => { if (type == 'note') { fired = true; } @@ -467,7 +467,7 @@ describe('Streaming', () => { userId: bob.id }, alice); - const ws = await connectStream(alice, 'socialTimeline', ({ type, body }) => { + const ws = await connectStream(alice, 'hybridTimeline', ({ type, body }) => { if (type == 'note') { assert.deepStrictEqual(body.userId, bob.id); assert.deepStrictEqual(body.text, 'foo'); @@ -490,7 +490,7 @@ describe('Streaming', () => { let fired = false; - const ws = await connectStream(alice, 'socialTimeline', ({ type, body }) => { + const ws = await connectStream(alice, 'hybridTimeline', ({ type, body }) => { if (type == 'note') { fired = true; } -- cgit v1.2.3-freya