Skip to content

Commit

Permalink
make tests pass on newer, better versions of node
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdickinson committed Mar 15, 2013
1 parent c2a20d7 commit bda753a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ try {
local_unnamed(expected); local_unnamed(expected);
} catch(err) { } catch(err) {
var traced = trace(err); var traced = trace(err);

assert.equal(traced.frames.length, err.stack.split('\n').length - 1); assert.equal(traced.frames.length, err.stack.split('\n').length - 1);
assert.equal(traced.frames[0].named_location, '<anonymous>'); assert.ok(!!~['<anonymous>', 'local_unnamed'].indexOf(traced.frames[0].named_location));


assert.equal(traced.first_line, err.stack.split('\n')[0]); assert.equal(traced.first_line, err.stack.split('\n')[0]);
assert.strictEqual(traced.original_error, err); assert.strictEqual(traced.original_error, err);
Expand Down

0 comments on commit bda753a

Please sign in to comment.