From ee08fd012db22590ef4d0edbfa7aa54178083ba8 Mon Sep 17 00:00:00 2001 From: Min Idzelis Date: Sat, 3 May 2025 13:47:21 +0000 Subject: [PATCH] tests --- e2e/src/api/specs/timeline.e2e-spec.ts | 42 ++++++++++++++++++++++++-- 1 file changed, 40 insertions(+), 2 deletions(-) diff --git a/e2e/src/api/specs/timeline.e2e-spec.ts b/e2e/src/api/specs/timeline.e2e-spec.ts index 8c6167f438..89e531d538 100644 --- a/e2e/src/api/specs/timeline.e2e-spec.ts +++ b/e2e/src/api/specs/timeline.e2e-spec.ts @@ -148,7 +148,26 @@ describe('/timeline', () => { .set('Authorization', `Bearer ${timeBucketUser.accessToken}`); expect(status).toBe(200); - expect(body).toEqual([]); + expect(body).toEqual({ + bucketAssets: { + description: [], + duration: [], + id: [], + isArchived: [], + isFavorite: [], + isImage: [], + isTrashed: [], + isVideo: [], + livePhotoVideoId: [], + localDateTime: [], + ownerId: [], + projectionType: [], + ratio: [], + stack: [], + thumbhash: [], + }, + hasNextPage: false, + }); }); // TODO enable date string validation while still accepting 5 digit years @@ -169,7 +188,26 @@ describe('/timeline', () => { .query({ timeBucket: '1970-02-10' }); expect(status).toBe(200); - expect(body).toEqual([]); + expect(body).toEqual({ + bucketAssets: { + description: [], + duration: [], + id: [], + isArchived: [], + isFavorite: [], + isImage: [], + isTrashed: [], + isVideo: [], + livePhotoVideoId: [], + localDateTime: [], + ownerId: [], + projectionType: [], + ratio: [], + stack: [], + thumbhash: [], + }, + hasNextPage: false, + }); }); }); });