refactor: library e2e (#7538)

* refactor: library e2e

* refactor: remove before each usages
This commit is contained in:
Jason Rasmussen 2024-02-29 15:10:08 -05:00 committed by GitHub
parent efa6efd200
commit 3d25d91e77
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 489 additions and 487 deletions

View file

@ -36,14 +36,14 @@ export const libraryApi = {
.post(`/library/${id}/scan`)
.set('Authorization', `Bearer ${accessToken}`)
.send(dto);
expect(status).toBe(201);
expect(status).toBe(204);
},
removeOfflineFiles: async (server: any, accessToken: string, id: string) => {
const { status } = await request(server)
.post(`/library/${id}/removeOffline`)
.set('Authorization', `Bearer ${accessToken}`)
.send();
expect(status).toBe(201);
expect(status).toBe(204);
},
getLibraryStatistics: async (server: any, accessToken: string, id: string): Promise<LibraryStatsResponseDto> => {
const { body, status } = await request(server)