Skip to content

Commit 7417485

Browse files
hueniversecjihrig
authored andcommittedFeb 8, 2018
Return error when asserting for thrown. Closes #123
1 parent 6bf9d1d commit 7417485

File tree

2 files changed

+184
-360
lines changed

2 files changed

+184
-360
lines changed
 

‎lib/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,7 @@ internals.throw = function (/* type, message */) {
392392
}
393393

394394
this.assert(thrown, 'throw an error', err);
395+
return err;
395396
}
396397

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

‎test/index.js

+183-360
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.