summaryrefslogtreecommitdiff
path: root/packages/backend/test/e2e/user-notes.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2023-10-03 20:26:11 +0900
committerGitHub <noreply@github.com>2023-10-03 20:26:11 +0900
commit6277a5545c746fac15ee6b4fe58de2e354ed7fda (patch)
tree700b0d162795f03d644a15ba2375628d66f95d92 /packages/backend/test/e2e/user-notes.ts
parentUpdate about-misskey.vue (diff)
downloadsharkey-6277a5545c746fac15ee6b4fe58de2e354ed7fda.tar.gz
sharkey-6277a5545c746fac15ee6b4fe58de2e354ed7fda.tar.bz2
sharkey-6277a5545c746fac15ee6b4fe58de2e354ed7fda.zip
feat: improve tl performance (#11946)
* wip * wip * wip * wip * wip * wip * Update NoteCreateService.ts * wip * wip * wip * wip * Update NoteCreateService.ts * wip * Update NoteCreateService.ts * wip * Update user-notes.ts * wip * wip * wip * Update NoteCreateService.ts * wip * Update timeline.ts * Update timeline.ts * Update timeline.ts * Update timeline.ts * Update timeline.ts * wip * Update timelines.ts * Update timelines.ts * Update timelines.ts * wip * wip * wip * Update timelines.ts * Update misskey-js.api.md * Update timelines.ts * Update timelines.ts * wip * wip * wip * Update timelines.ts * wip * Update timelines.ts * wip * test * Update activitypub.ts * refactor: UserListJoining -> UserListMembership * Update NoteCreateService.ts * wip
Diffstat (limited to 'packages/backend/test/e2e/user-notes.ts')
-rw-r--r--packages/backend/test/e2e/user-notes.ts17
1 files changed, 2 insertions, 15 deletions
diff --git a/packages/backend/test/e2e/user-notes.ts b/packages/backend/test/e2e/user-notes.ts
index 121070787d..b5f00a6327 100644
--- a/packages/backend/test/e2e/user-notes.ts
+++ b/packages/backend/test/e2e/user-notes.ts
@@ -38,23 +38,10 @@ describe('users/notes', () => {
await app.close();
});
- test('ファイルタイプ指定 (jpg)', async () => {
+ test('withFiles', async () => {
const res = await api('/users/notes', {
userId: alice.id,
- fileType: ['image/jpeg'],
- }, alice);
-
- assert.strictEqual(res.status, 200);
- assert.strictEqual(Array.isArray(res.body), true);
- assert.strictEqual(res.body.length, 2);
- assert.strictEqual(res.body.some((note: any) => note.id === jpgNote.id), true);
- assert.strictEqual(res.body.some((note: any) => note.id === jpgPngNote.id), true);
- });
-
- test('ファイルタイプ指定 (jpg or png)', async () => {
- const res = await api('/users/notes', {
- userId: alice.id,
- fileType: ['image/jpeg', 'image/png'],
+ withFiles: true,
}, alice);
assert.strictEqual(res.status, 200);