Skip to content
Snippets Groups Projects
Commit 10e0d977 authored by Mike Pennisi's avatar Mike Pennisi
Browse files

Prefer explicit error checking where possible

The `negative` frontmatter tag expresses an expectation for the behavior
of the test file as a whole. The `assert.throws` helper function offers
more fine-grained control over expectations because it may be applied to
specific statements and expressions. This makes it preferable in cases
where it may be used (i.e. when the test body does not describe a syntax
error or early error).

Re-implement assertions for errors to use the `assert.throws` helper
function wherever possible.
parent 0027a6b6
No related branches found
No related tags found
No related merge requests found
Showing
with 75 additions and 56 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment