mirror of
https://github.com/immich-app/immich.git
synced 2025-01-06 03:46:47 +01:00
30f499cf2e
update server to use absolute import paths
10 lines
397 B
TypeScript
10 lines
397 B
TypeScript
import { AssetResponseDto } from 'src/domain/asset/response-dto/asset-response.dto';
|
|
import request from 'supertest';
|
|
|
|
export const assetApi = {
|
|
getAllAssets: async (server: any, accessToken: string) => {
|
|
const { body, status } = await request(server).get(`/asset/`).set('Authorization', `Bearer ${accessToken}`);
|
|
expect(status).toBe(200);
|
|
return body as AssetResponseDto[];
|
|
},
|
|
};
|