Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
test: use regular match error message
  • Loading branch information
Amunu committed Jul 16, 2017
commit a22789592218b7de0aee3ee8f3c644a2cdb97c0d
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 @@ -19,7 +19,7 @@ MyWritable.prototype._write = function(chunk, encoding, callback) {
assert.throws(() => {
const m = new MyWritable({objectMode: true});
m.write(null, (err) => assert.ok(err));
}, TypeError, 'May not write null values to stream');
}, /^TypeError: May not write null values to stream$/);
assert.doesNotThrow(() => {
const m = new MyWritable({objectMode: true}).on('error', (e) => {
assert.ok(e);
Expand Down