Skip to content

Commit

Permalink
Fix util.inspect test in safari 11
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed Mar 21, 2018
1 parent 8dd7efc commit e4368f9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/browser/inspect.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ test('util.inspect - test for sparse array', function (t) {
});

test('util.inspect - exceptions should print the error message, not \'{}\'', function (t) {
t.equal(util.inspect(new Error()), '[Error]');
t.equal(util.inspect(new Error('FAIL')), '[Error: FAIL]');
t.equal(util.inspect(new TypeError('FAIL')), '[TypeError: FAIL]');
t.equal(util.inspect(new SyntaxError('FAIL')), '[SyntaxError: FAIL]');
t.notEqual(util.inspect(new Error()).indexOf('[Error]'), -1);
t.notEqual(util.inspect(new Error('FAIL')).indexOf('[Error: FAIL]'), -1);
t.notEqual(util.inspect(new TypeError('FAIL')).indexOf('[TypeError: FAIL]'), -1);
t.notEqual(util.inspect(new SyntaxError('FAIL')).indexOf('[SyntaxError: FAIL]'), -1);
t.end();
});

0 comments on commit e4368f9

Please sign in to comment.