Skip to content

v7.2.2

  • v7.2.2
  • 442b742
  • Verified

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

  • v7.2.2
  • 442b742
  • 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 10:09
Add a new assertion form for promise rejections that matches error name
and message, with optional regex support:

  expr //=> rejects TypeError: bad input
  expr //=> rejects Error: /pattern/i

Extract shared formatMessageProp helper for throws and rejects.
Assets 2
Loading