Skip to content

Commit

Permalink
test: improve test for stream writable change default encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
fraserxu committed Jul 16, 2017
1 parent 785a9e5 commit d37a55a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ assert.throws(function changeDefaultEncodingToInvalidValue() {
m.setDefaultEncoding({});
m.write('bar');
m.end();
}, TypeError);
}, /^TypeError: Unknown encoding: \[object Object\]$/);

(function checkVairableCaseEncoding() {
const m = new MyWritable(function(isBuffer, type, enc) {
Expand Down

0 comments on commit d37a55a

Please sign in to comment.