mirror of
				https://github.com/KevinMidboe/immich.git
				synced 2025-10-29 17:40:28 +00:00 
			
		
		
		
	* test(server): auth controller e2e test * test(server): user e2e test * refactor(server): album e2e * fix: linting
		
			
				
	
	
		
			33 lines
		
	
	
		
			687 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			687 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| export const errorStub = {
 | |
|   unauthorized: {
 | |
|     error: 'Unauthorized',
 | |
|     statusCode: 401,
 | |
|     message: 'Authentication required',
 | |
|   },
 | |
|   wrongPassword: {
 | |
|     error: 'Bad Request',
 | |
|     statusCode: 400,
 | |
|     message: 'Wrong password',
 | |
|   },
 | |
|   invalidToken: {
 | |
|     error: 'Unauthorized',
 | |
|     statusCode: 401,
 | |
|     message: 'Invalid user token',
 | |
|   },
 | |
|   badRequest: {
 | |
|     error: 'Bad Request',
 | |
|     statusCode: 400,
 | |
|     message: expect.any(Array),
 | |
|   },
 | |
|   incorrectLogin: {
 | |
|     error: 'Unauthorized',
 | |
|     statusCode: 401,
 | |
|     message: 'Incorrect email or password',
 | |
|   },
 | |
|   alreadyHasAdmin: {
 | |
|     error: 'Bad Request',
 | |
|     statusCode: 400,
 | |
|     message: 'The server already has an admin',
 | |
|   },
 | |
| };
 |