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
Please provide details about:
Assuming:
"ava": "^6.2.0"
import ava from "ava" ava("KO", test => { test.throws(() => { }) })
Running the test file (npm test) result in the following feedback:
npm test
✘ [fail]: KO ─ KO foo.test.js:4 3: ava("KO", test => { 4: test.throws(() => { 5: }) Function returned: undefined › file://foo.test.js:4:8 ─ 1 test failed
A more concise message explaining that the function should have thrown something.
The text was updated successfully, but these errors were encountered:
Happy for a PR to tweak the “Function returned” copy. Perhaps “Function did not throw, instead returned”?
Sorry, something went wrong.
I'd say something along the lines of "The following assertion was expecting an error to be thrown" ? Maybe specify which type of error also.
I wonder if that's a larger change across all assertions?
No branches or pull requests
Please provide details about:
Assuming:
"ava": "^6.2.0"
andRunning the test file (
npm test
) result in the following feedback:A more concise message explaining that the function should have thrown something.
The text was updated successfully, but these errors were encountered: