immich/server/e2e/client/server-info-api.ts
2024-01-24 17:24:53 -05:00

11 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;
},
};