Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
test: modify console-assign-undefined to not rely on error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jackhorton committed Feb 4, 2018
1 parent a90dd55 commit 0a7a9ab
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions test/parallel/test-console-assign-undefined.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,7 @@ const assert = require('assert');
assert.strictEqual(global.console, 42);
assert.strictEqual(global.console, 42);

common.expectsError(
() => console.log('foo'),
{
type: TypeError,
message: 'console.log is not a function'
}
);
assert.throws(() => console.log('foo'), TypeError);

global.console = 1;
assert.strictEqual(global.console, 1);
Expand Down

0 comments on commit 0a7a9ab

Please sign in to comment.