Skip to content

Commit

Permalink
Use lib directory instead of package root for stacktrace checking
Browse files Browse the repository at this point in the history
  • Loading branch information
fongandrew committed Sep 10, 2017
1 parent de7f4fa commit b6f5aaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ Test.prototype._assert = function assert (ok, opts) {
if (!ok) {
var e = new Error('exception');
var err = (e.stack || '').split('\n');
var dir = path.dirname(__dirname) + path.sep;
var dir = __dirname + path.sep;

for (var i = 0; i < err.length; i++) {
var m = /^[^\s]*\s*\bat\s+(.+)/.exec(err[i]);
Expand Down

0 comments on commit b6f5aaf

Please sign in to comment.