diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-10-04 15:33:02 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-10-04 15:33:02 +0900 |
| commit | 05d1f5e564b5b7b82cbc677c3e32d9989f4e2383 (patch) | |
| tree | f0eb6db719e75e673516c409b424789744e82b81 /packages/backend/test/e2e | |
| parent | fix test (diff) | |
| download | sharkey-05d1f5e564b5b7b82cbc677c3e32d9989f4e2383.tar.gz sharkey-05d1f5e564b5b7b82cbc677c3e32d9989f4e2383.tar.bz2 sharkey-05d1f5e564b5b7b82cbc677c3e32d9989f4e2383.zip | |
add more test
Diffstat (limited to 'packages/backend/test/e2e')
| -rw-r--r-- | packages/backend/test/e2e/timelines.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/backend/test/e2e/timelines.ts b/packages/backend/test/e2e/timelines.ts index 4cdecb9a05..6efdbd63ba 100644 --- a/packages/backend/test/e2e/timelines.ts +++ b/packages/backend/test/e2e/timelines.ts @@ -799,6 +799,19 @@ describe('Timelines', () => { assert.strictEqual(res.body.some((note: any) => note.id === bobNote1.id), false); assert.strictEqual(res.body.some((note: any) => note.id === bobNote2.id), true); }, 1000 * 10); + + test.concurrent('ミュートしていても userId に指定したユーザーの投稿が含まれる', async () => { + const [alice, bob] = await Promise.all([signup(), signup()]); + + await api('/mute/create', { userId: bob.id }, alice); + const bobNote = await post(bob, { text: 'hi' }); + + await sleep(100); // redisに追加されるのを待つ + + const res = await api('/users/notes', { userId: bob.id }, alice); + + assert.strictEqual(res.body.some((note: any) => note.id === bobNote.id), true); + }); }); // TODO: リノートミュート済みユーザーのテスト |