How to use basic-auth.mockReturnValue:
60 61 62 63 64 65 66 67 68 69
}) describe('when a user supplies correct username/password', () => { beforeEach(() => { jest.clearAllMocks() basicAuth.mockReturnValue(userDetails) authentication({}, res, next) }) it('should not return a console error', () => {