refactor(server): upload config (#3148)

This commit is contained in:
Jason Rasmussen
2023-07-09 00:37:40 -04:00
committed by GitHub
parent 8349a28ed8
commit 398bd04ffd
23 changed files with 473 additions and 624 deletions

View File

@@ -2,6 +2,7 @@ import { ICryptoRepository } from '@app/domain';
export const newCryptoRepositoryMock = (): jest.Mocked<ICryptoRepository> => {
return {
randomUUID: jest.fn().mockReturnValue('random-uuid'),
randomBytes: jest.fn().mockReturnValue(Buffer.from('random-bytes', 'utf8')),
compareBcrypt: jest.fn().mockReturnValue(true),
hashBcrypt: jest.fn().mockImplementation((input) => Promise.resolve(`${input} (hashed)`)),