mirror of
https://github.com/immich-app/immich.git
synced 2025-01-07 20:36:48 +01:00
bf1dd36fa9
* refactor: domain and infra modules * refactor(server): e2e tests
10 lines
298 B
TypeScript
10 lines
298 B
TypeScript
import { ServerConfigDto } from '@app/domain';
|
|
import request from 'supertest';
|
|
|
|
export const serverInfoApi = {
|
|
getConfig: async (server: any) => {
|
|
const res = await request(server).get('/server-info/config');
|
|
expect(res.status).toBe(200);
|
|
return res.body as ServerConfigDto;
|
|
},
|
|
};
|