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

adding shouldThrowException function #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

akhesaCaro
Copy link

@akhesaCaro akhesaCaro commented Mar 15, 2021

I needed to test a DB exception and it was a bit harsh.

I implemented shouldThrowException helper to be able to test it easily. So why not share it to the community?

Example of use with an ErrorCall Exception:

actionFunction `shouldThrowException` (ErrorCallWithLocation "My error message" "")

@akhesaCaro akhesaCaro force-pushed the shouldReturnException branch from 356f852 to 64a0b1a Compare March 15, 2021 17:12
@akhesaCaro akhesaCaro force-pushed the shouldReturnException branch from 64a0b1a to 2b0ac72 Compare March 17, 2021 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant