Skip to content

Commit

Permalink
change the typeerror to a regular expression
Browse files Browse the repository at this point in the history
  • Loading branch information
bangwu committed Jul 16, 2017
1 parent 5d3609d commit 62dc9f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-stream-writable-null.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ assert.doesNotThrow(() => {
assert.throws(() => {
const m = new MyWritable();
m.write(false, (err) => assert.ok(err));
}, TypeError, 'Invalid non-string/buffer chunk');
}, /^TypeError: Invalid non-string\/buffer chunk$/, 'Invalid non-string/buffer chunk');
assert.doesNotThrow(() => {
const m = new MyWritable().on('error', (e) => {
assert.ok(e);
Expand Down

0 comments on commit 62dc9f0

Please sign in to comment.