Browse Source

test: remove literal error messages

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 <cjihrig@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
v6.x-staging
Faisal Yaqoob 7 years ago
committed by Myles Borins
parent
commit
3371ee8ecc
No known key found for this signature in database GPG Key ID: 933B01F40B5CA946
  1. 10
      test/parallel/test-zlib-flush-drain.js

10
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);
});

Loading…
Cancel
Save