From 4a9e3312fd6d2ec2dbea7caa66f5f5747dd99609 Mon Sep 17 00:00:00 2001 From: Luke Greenleaf Date: Fri, 6 Oct 2017 10:46:46 -0700 Subject: [PATCH] test: alter assert.strictEqual to default message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/15978 Reviewed-By: Colin Ihrig Reviewed-By: Benjamin Gruenbaum Reviewed-By: Ruben Bridgewater Reviewed-By: Tobias Nießen --- test/parallel/test-zlib-from-string.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/test/parallel/test-zlib-from-string.js b/test/parallel/test-zlib-from-string.js index f393a3d67974c1..617a8b55056ebd 100644 --- a/test/parallel/test-zlib-from-string.js +++ b/test/parallel/test-zlib-from-string.js @@ -55,8 +55,7 @@ const expectedBase64Gzip = 'H4sIAAAAAAAAA11RS05DMQy8yhzg6d2BPSAkJPZu4laWkjiN4' + 'sHnHNzRtagj5AQAA'; zlib.deflate(inputString, common.mustCall((err, buffer) => { - assert.strictEqual(buffer.toString('base64'), expectedBase64Deflate, - 'deflate encoded string should match'); + assert.strictEqual(buffer.toString('base64'), expectedBase64Deflate); })); zlib.gzip(inputString, common.mustCall((err, buffer) => { @@ -67,19 +66,16 @@ zlib.gzip(inputString, common.mustCall((err, buffer) => { // result that we're expecting, and this should match what we get // from inflating the known valid deflate data. zlib.gunzip(buffer, common.mustCall((err, gunzipped) => { - assert.strictEqual(gunzipped.toString(), inputString, - 'Should get original string after gzip/gunzip'); + assert.strictEqual(gunzipped.toString(), inputString); })); })); let buffer = Buffer.from(expectedBase64Deflate, 'base64'); zlib.unzip(buffer, common.mustCall((err, buffer) => { - assert.strictEqual(buffer.toString(), inputString, - 'decoded inflated string should match'); + assert.strictEqual(buffer.toString(), inputString); })); buffer = Buffer.from(expectedBase64Gzip, 'base64'); zlib.unzip(buffer, common.mustCall((err, buffer) => { - assert.strictEqual(buffer.toString(), inputString, - 'decoded gunzipped string should match'); + assert.strictEqual(buffer.toString(), inputString); }));