mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-03 11:07:10 -05:00 
			
		
		
		
	* refactor(server): tsconfigs * chore: dummy commit * fix: start.sh * chore: restore original entry scripts
		
			
				
	
	
		
			11 lines
		
	
	
		
			454 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			454 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
import { ICryptoRepository } from '@app/domain';
 | 
						|
 | 
						|
export const newCryptoRepositoryMock = (): jest.Mocked<ICryptoRepository> => {
 | 
						|
  return {
 | 
						|
    randomBytes: jest.fn().mockReturnValue(Buffer.from('random-bytes', 'utf8')),
 | 
						|
    compareBcrypt: jest.fn().mockReturnValue(true),
 | 
						|
    hashBcrypt: jest.fn().mockImplementation((input) => Promise.resolve(`${input} (hashed)`)),
 | 
						|
    hashSha256: jest.fn().mockImplementation((input) => `${input} (hashed)`),
 | 
						|
  };
 | 
						|
};
 |