Skip to content

Commit 62dc9f0

Browse files
committed
change the typeerror to a regular expression
1 parent 5d3609d commit 62dc9f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-stream-writable-null.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ assert.doesNotThrow(() => {
3232
assert.throws(() => {
3333
const m = new MyWritable();
3434
m.write(false, (err) => assert.ok(err));
35-
}, TypeError, 'Invalid non-string/buffer chunk');
35+
}, /^TypeError: Invalid non-string\/buffer chunk$/, 'Invalid non-string/buffer chunk');
3636
assert.doesNotThrow(() => {
3737
const m = new MyWritable().on('error', (e) => {
3838
assert.ok(e);

0 commit comments

Comments
 (0)