We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Throwing functions can currently be mocked like any other function, but we don't support faking errors for throwing function mocks yet.
This could look something like this:
userServiceMock.createUserFunc.throws(UserError.invalidEmail)
The text was updated successfully, but these errors were encountered:
Add support for faking an error for throwing functions using Function…
77a053c
…Mock (#2)
Add support for faking an error for throwing functions in ReturningFu…
7ad67b8
…nctionMock (#2)
Extend example project with mocking a throwing function (#2)
ce92b50
Add unit test for resetting the error in ReturningFunctionMock (#2)
4831bab
danielr
No branches or pull requests
Throwing functions can currently be mocked like any other function, but we don't support faking errors for throwing function mocks yet.
This could look something like this:
The text was updated successfully, but these errors were encountered: