refactor(server): new password repo method (#8208)

This commit is contained in:
Jason Rasmussen 2024-03-23 14:33:25 -04:00 committed by GitHub
parent 604b8ff17c
commit 787eebcf1e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 15 additions and 10 deletions

View file

@ -9,5 +9,6 @@ export const newCryptoRepositoryMock = (): jest.Mocked<ICryptoRepository> => {
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)`),
newPassword: jest.fn().mockReturnValue(Buffer.from('random-bytes').toString('base64')),
};
};