mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-03 19:29:32 -05:00 
			
		
		
		
	* refactor: api keys * refactor: test module * chore: tests * chore: fix provider * refactor: test mock repos
		
			
				
	
	
		
			16 lines
		
	
	
		
			355 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			355 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
import { IUserRepository } from '../src';
 | 
						|
 | 
						|
export const newUserRepositoryMock = (): jest.Mocked<IUserRepository> => {
 | 
						|
  return {
 | 
						|
    get: jest.fn(),
 | 
						|
    getAdmin: jest.fn(),
 | 
						|
    getByEmail: jest.fn(),
 | 
						|
    getByOAuthId: jest.fn(),
 | 
						|
    getList: jest.fn(),
 | 
						|
    create: jest.fn(),
 | 
						|
    update: jest.fn(),
 | 
						|
    delete: jest.fn(),
 | 
						|
    restore: jest.fn(),
 | 
						|
  };
 | 
						|
};
 |