refactor(server): android motion photos (#3711)

This commit is contained in:
Jason Rasmussen
2023-09-12 23:46:37 -04:00
committed by GitHub
parent bf3b38a7f2
commit 74d34b4f6c
7 changed files with 106 additions and 156 deletions

View File

@@ -7,6 +7,7 @@ export const newCryptoRepositoryMock = (): jest.Mocked<ICryptoRepository> => {
compareBcrypt: jest.fn().mockReturnValue(true),
hashBcrypt: jest.fn().mockImplementation((input) => Promise.resolve(`${input} (hashed)`)),
hashSha256: jest.fn().mockImplementation((input) => `${input} (hashed)`),
hashSha1: jest.fn().mockImplementation((input) => Buffer.from(`${input.toString()} (hashed)`)),
hashFile: jest.fn().mockImplementation((input) => `${input} (file-hashed)`),
};
};