Skip to content

Commit

Permalink
Return error when asserting for thrown. Closes #123
Browse files Browse the repository at this point in the history
  • Loading branch information
hueniverse authored and cjihrig committed Feb 8, 2018
1 parent 6bf9d1d commit 7417485
Show file tree
Hide file tree
Showing 2 changed files with 184 additions and 360 deletions.
1 change: 1 addition & 0 deletions lib/index.js
Expand Up @@ -392,6 +392,7 @@ internals.throw = function (/* type, message */) {
}

this.assert(thrown, 'throw an error', err);
return err;
}

return this.assert(thrown, 'throw an error');
Expand Down

0 comments on commit 7417485

Please sign in to comment.