-
-
Notifications
You must be signed in to change notification settings - Fork 87
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
toThrow() is not implemented in test-runner. #246
Labels
Comments
Happy to accept a PR 👍 In the meantime you can do something like try {
something()
expect(false).toBe(true)
} catch (err) {
expect(true).toBe(true)
} |
Yup, thats exactly what i did! Ill try and work something out later. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I just checked the test runners, matchers.js and it seems like it hasnt been implemented. It def is needed to test for thrown exceptions.
The text was updated successfully, but these errors were encountered: