diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-02-15 13:06:06 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-15 13:06:06 +0900 |
| commit | 8f2049bcd261c3fb10afdc8c15cf4edffe1baa71 (patch) | |
| tree | dc5aa1cefc24d3f6eb36bb1723d7433f8a19e5a2 /packages/backend/test/_e2e | |
| parent | Merge branch 'develop' of https://github.com/misskey-dev/misskey into develop (diff) | |
| download | misskey-8f2049bcd261c3fb10afdc8c15cf4edffe1baa71.tar.gz misskey-8f2049bcd261c3fb10afdc8c15cf4edffe1baa71.tar.bz2 misskey-8f2049bcd261c3fb10afdc8c15cf4edffe1baa71.zip | |
drop messaging (#9919)
* drop messaging (from backend)
* wip
Diffstat (limited to 'packages/backend/test/_e2e')
| -rw-r--r-- | packages/backend/test/_e2e/endpoints.ts | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/packages/backend/test/_e2e/endpoints.ts b/packages/backend/test/_e2e/endpoints.ts index ea8433dfa2..aed980d6c8 100644 --- a/packages/backend/test/_e2e/endpoints.ts +++ b/packages/backend/test/_e2e/endpoints.ts @@ -778,63 +778,6 @@ describe('API: Endpoints', () => { })); }); - describe('messaging/messages/create', () => { - test('メッセージを送信できる', async () => { - const res = await api('/messaging/messages/create', { - userId: bob.id, - text: 'test' - }, alice); - - assert.strictEqual(res.status, 200); - assert.strictEqual(typeof res.body === 'object' && !Array.isArray(res.body), true); - assert.strictEqual(res.body.text, 'test'); - })); - - test('自分自身にはメッセージを送信できない', async () => { - const res = await api('/messaging/messages/create', { - userId: alice.id, - text: 'Yo' - }, alice); - - assert.strictEqual(res.status, 400); - })); - - test('存在しないユーザーにはメッセージを送信できない', async () => { - const res = await api('/messaging/messages/create', { - userId: '000000000000000000000000', - text: 'test' - }, alice); - - assert.strictEqual(res.status, 400); - })); - - test('不正なユーザーIDで怒られる', async () => { - const res = await api('/messaging/messages/create', { - userId: 'foo', - text: 'test' - }, alice); - - assert.strictEqual(res.status, 400); - })); - - test('テキストが無くて怒られる', async () => { - const res = await api('/messaging/messages/create', { - userId: bob.id - }, alice); - - assert.strictEqual(res.status, 400); - })); - - test('文字数オーバーで怒られる', async () => { - const res = await api('/messaging/messages/create', { - userId: bob.id, - text: '!'.repeat(1001) - }, alice); - - assert.strictEqual(res.status, 400); - })); - }); - describe('notes/replies', () => { test('自分に閲覧権限のない投稿は含まれない', async () => { const alicePost = await post(alice, { |