Skip to content

Commit

Permalink
fixup: mustCall
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Apr 25, 2020
1 parent 4f1e2bc commit 7da4656
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/parallel/test-stream-writable-finish-destroyed.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ const { Writable } = require('stream');

{
const w = new Writable({
write(chunk, encoding, cb) {
w.on('close', () => {
write: common.mustCall((chunk, encoding, cb) => {
w.on('close', common.mustCall(() => {
cb();
});
}
}));
})
});

w.end('asd');
Expand All @@ -19,12 +19,12 @@ const { Writable } = require('stream');

{
const w = new Writable({
write(chunk, encoding, cb) {
w.on('close', () => {
write: common.mustCall((chunk, encoding, cb) => {
w.on('close', common.mustCall(() => {
cb();
w.end();
});
}
}));
})
});

w.on('finish', common.mustNotCall());
Expand Down

0 comments on commit 7da4656

Please sign in to comment.