diff --git a/test/parallel/test-zlib-from-string.js b/test/parallel/test-zlib-from-string.js index cf24d2a804cc73..7ed575d1971c0d 100644 --- a/test/parallel/test-zlib-from-string.js +++ b/test/parallel/test-zlib-from-string.js @@ -34,8 +34,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) => { @@ -46,19 +45,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); }));