Skip to content
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
test: remove string error from strictEquals
Removes the string error from the assertion call to
improve the error message shown on screen when the
test fails.
  • Loading branch information
deleteman committed Jun 12, 2018
commit 9fad50bb1cf05c19f4b103dcd7be7c3116f270ac
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const stream = require('stream');
const writable = new stream.Writable();

writable._writev = common.mustCall((chunks, cb) => {
//two chunks to write
//error: two chunks to write
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the comment can be removed. Maybe it's just me but I don't find it useful.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree. This will also fail our linter due to the lack of a space after //.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello both, thanks for the comments, I've added a new commit to this PR to remove the comment.

Let me know what you think.

Cheers

assert.strictEqual(chunks.length, 2);
cb();
}, 1);
Expand Down