mirror of
https://github.com/immich-app/immich.git
synced 2025-12-21 01:11:16 +03:00
refactor(server): e2e (#6632)
This commit is contained in:
10
server/e2e/client/server-info-api.ts
Normal file
10
server/e2e/client/server-info-api.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
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;
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user