Skip to content

v7.2.0

  • v7.2.0
  • ba27181
  • Verified

    This commit was signed with the committer’s verified signature.
    laat Sigurd Fosseng
  • Choose a tag to compare

  • v7.2.0
  • ba27181
  • Choose a tag to compare

  • Verified

    This commit was signed with the committer’s verified signature.
    laat Sigurd Fosseng
@laat laat tagged this 12 Apr 09:58
Add a new assertion form that matches error name and message:

  expr //=> TypeError: bad input
  → assert.throws(() => { expr; }, { name: "TypeError", message: "bad input" })

The error name alone also works (e.g. //=> RangeError).
Assets 2
Loading