Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3371ee8

Browse files
fyesoftMylesBorins
authored andcommittedOct 17, 2017
test: remove literal error messages
Assertions will now print the values that caused the assertions to fail. PR-URL: #15928 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent b93842a commit 3371ee8

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed
 

‎test/parallel/test-zlib-flush-drain.js

+4-6
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,11 @@ deflater.on('drain', function() {
3838

3939
process.once('exit', function() {
4040
assert.strictEqual(
41-
beforeFlush, true,
42-
'before calling flush, writable stream should need to drain');
41+
beforeFlush, true);
4342
assert.strictEqual(
44-
afterFlush, false,
45-
'after calling flush, writable stream should not need to drain');
43+
afterFlush, false);
4644
assert.strictEqual(
47-
drainCount, 1, 'the deflater should have emitted a single drain event');
45+
drainCount, 1);
4846
assert.strictEqual(
49-
flushCount, 2, 'flush should be called twice');
47+
flushCount, 2);
5048
});

0 commit comments

Comments
 (0)
Please sign in to comment.