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>
This commit is contained in:
Faisal Yaqoob 2017-10-06 10:20:22 -07:00 committed by Ruben Bridgewater
parent 96221c2471
commit ba6049f7f9
No known key found for this signature in database
GPG Key ID: F07496B3EB3C1762

View File

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