EvalueTonSavoir/server/__mocks__/bcrypt.js

7 lines
159 B
JavaScript
Raw Normal View History

const mockBcrypt = {
hash: jest.fn().mockResolvedValue('hashedPassword'),
compare: jest.fn().mockResolvedValue(true),
};
module.exports = mockBcrypt;