mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
11 lines
362 B
TypeScript
11 lines
362 B
TypeScript
|
|
import { LibraryResponseDto } from '@app/domain';
|
||
|
|
import request from 'supertest';
|
||
|
|
|
||
|
|
export const libraryApi = {
|
||
|
|
getAll: async (server: any, accessToken: string) => {
|
||
|
|
const { body, status } = await request(server).get(`/library/`).set('Authorization', `Bearer ${accessToken}`);
|
||
|
|
expect(status).toBe(200);
|
||
|
|
return body as LibraryResponseDto[];
|
||
|
|
},
|
||
|
|
};
|