diff options
author | Martin Michaelis <code@mgjm.de> | 2017-10-06 09:55:06 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2017-10-10 21:45:45 -0700 |
commit | adbc5d7d57c17a8eb7ce69ad763394ade55202c3 (patch) | |
tree | 42a33613adff37a394463465ebfc330657345292 /test/parallel/test-zlib-unzip-one-byte-chunks.js | |
parent | f170f8493c067d661957599d7278cb467ea06736 (diff) | |
download | android-node-v8-adbc5d7d57c17a8eb7ce69ad763394ade55202c3.tar.gz android-node-v8-adbc5d7d57c17a8eb7ce69ad763394ade55202c3.tar.bz2 android-node-v8-adbc5d7d57c17a8eb7ce69ad763394ade55202c3.zip |
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.
PR-URL: https://github.com/nodejs/node/pull/15879
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'test/parallel/test-zlib-unzip-one-byte-chunks.js')
-rw-r--r-- | test/parallel/test-zlib-unzip-one-byte-chunks.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/parallel/test-zlib-unzip-one-byte-chunks.js b/test/parallel/test-zlib-unzip-one-byte-chunks.js index 50a383af18..be3b5dda81 100644 --- a/test/parallel/test-zlib-unzip-one-byte-chunks.js +++ b/test/parallel/test-zlib-unzip-one-byte-chunks.js @@ -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++) { |