From 3371ee8eccf51a1385d44fea5761d070a6d69b4e Mon Sep 17 00:00:00 2001 From: Faisal Yaqoob Date: Fri, 6 Oct 2017 10:20:22 -0700 Subject: [PATCH] test: remove literal error messages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Assertions will now print the values that caused the assertions to fail. PR-URL: https://github.com/nodejs/node/pull/15928 Reviewed-By: Colin Ihrig Reviewed-By: Tobias Nießen Reviewed-By: Ruben Bridgewater --- test/parallel/test-zlib-flush-drain.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/test/parallel/test-zlib-flush-drain.js b/test/parallel/test-zlib-flush-drain.js index 756f33f25f..0619eecf3c 100644 --- a/test/parallel/test-zlib-flush-drain.js +++ b/test/parallel/test-zlib-flush-drain.js @@ -38,13 +38,11 @@ deflater.on('drain', function() { process.once('exit', function() { assert.strictEqual( - beforeFlush, true, - 'before calling flush, writable stream should need to drain'); + beforeFlush, true); assert.strictEqual( - afterFlush, false, - 'after calling flush, writable stream should not need to drain'); + afterFlush, false); assert.strictEqual( - drainCount, 1, 'the deflater should have emitted a single drain event'); + drainCount, 1); assert.strictEqual( - flushCount, 2, 'flush should be called twice'); + flushCount, 2); });