Skip to content

Fix failure to validate exception messages #379

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

Merged
merged 1 commit into from
Nov 30, 2018

Conversation

sharwell
Copy link
Member

@sharwell sharwell commented Nov 25, 2018

The previous use of strings instead of regular expressions caused the assertion to treat the message as an additional output string should the test function fail to throw. Switching to RegExp causes the assertion to instead validate the error message itself.

See nodejs/node#19867

The previous use of strings instead of regular expressions caused the
assertion to treat the message as an additional output string should
the test function fail to throw. Switching to RegExp causes the
assertion to instead validate the error message itself.

See nodejs/node#19867
@codecov-io
Copy link

Codecov Report

Merging #379 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master     #379   +/-   ##
=======================================
  Coverage   74.89%   74.89%           
=======================================
  Files         152      152           
  Lines       10058    10058           
  Branches     1587     1587           
=======================================
  Hits         7533     7533           
  Misses       1966     1966           
  Partials      559      559

@sharwell sharwell merged commit f649059 into tunnelvisionlabs:master Nov 30, 2018
@sharwell sharwell deleted the validate-errors branch November 30, 2018 12:58
@sharwell sharwell added this to the 0.5.0-alpha.1 milestone Nov 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants