mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-04 03:39:37 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
		
			298 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			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;
 | 
						|
  },
 | 
						|
};
 |