Skip to content
New issue

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

Better support for throwing functions #2

Open
danielr opened this issue Jul 6, 2019 · 0 comments
Open

Better support for throwing functions #2

danielr opened this issue Jul 6, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@danielr
Copy link
Owner

danielr commented Jul 6, 2019

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant