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: rewrite assert message
`test/parallel/test-zlib-unzip-one-byte-chunks.js` uses a literal
string to describe the error if the string does not match itself
after zipping and unzipping. Changed to a more descriptive template
literal.
  • Loading branch information
mgjm committed Oct 6, 2017
commit c09ba8f88d54be2e0f43885e2382dfc46c5b89c8
4 changes: 3 additions & 1 deletion test/parallel/test-zlib-unzip-one-byte-chunks.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ const unzip = zlib.createUnzip()
.on('data', (data) => resultBuffers.push(data))
.on('finish', common.mustCall(() => {
assert.deepStrictEqual(Buffer.concat(resultBuffers).toString(), 'abcdef',
'result should match original string');
`'${Buffer.concat(resultBuffers).toString()}' ` +
'should match \'abcdef\' after ' +
'zipping and unzipping');
}));

for (let i = 0; i < data.length; i++) {
Expand Down