test: update e2e tests with refactoring changes

This commit is contained in:
izzy
2026-01-07 13:01:56 +00:00
parent 7f8b0772a9
commit a9867c3f94
+6 -3
View File
@@ -403,7 +403,7 @@ describe('/admin/integrity', () => {
expect(status).toBe(200); expect(status).toBe(200);
expect(body).toEqual({ expect(body).toEqual({
hasNextPage: expect.any(Boolean), nextCursor: undefined,
items: expect.arrayContaining([ items: expect.arrayContaining([
{ {
id: expect.any(String), id: expect.any(String),
@@ -411,6 +411,7 @@ describe('/admin/integrity', () => {
path: `/data/upload/${admin.userId}/untracked1.png`, path: `/data/upload/${admin.userId}/untracked1.png`,
assetId: null, assetId: null,
fileAssetId: null, fileAssetId: null,
createdAt: expect.any(String),
}, },
]), ]),
}); });
@@ -432,7 +433,7 @@ describe('/admin/integrity', () => {
expect(status).toBe(200); expect(status).toBe(200);
expect(body).toEqual({ expect(body).toEqual({
hasNextPage: expect.any(Boolean), nextCursor: undefined,
items: expect.arrayContaining([ items: expect.arrayContaining([
{ {
id: expect.any(String), id: expect.any(String),
@@ -440,6 +441,7 @@ describe('/admin/integrity', () => {
path: expect.any(String), path: expect.any(String),
assetId: asset.id, assetId: asset.id,
fileAssetId: null, fileAssetId: null,
createdAt: expect.any(String),
}, },
]), ]),
}); });
@@ -461,7 +463,7 @@ describe('/admin/integrity', () => {
expect(status).toBe(200); expect(status).toBe(200);
expect(body).toEqual({ expect(body).toEqual({
hasNextPage: expect.any(Boolean), nextCursor: undefined,
items: expect.arrayContaining([ items: expect.arrayContaining([
{ {
id: expect.any(String), id: expect.any(String),
@@ -469,6 +471,7 @@ describe('/admin/integrity', () => {
path: expect.any(String), path: expect.any(String),
assetId: asset.id, assetId: asset.id,
fileAssetId: null, fileAssetId: null,
createdAt: expect.any(String),
}, },
]), ]),
}); });