We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89b66dc commit 8fdb6c2Copy full SHA for 8fdb6c2
test/parallel/test-zlib-write-after-close.js
@@ -6,7 +6,5 @@ const zlib = require('zlib');
6
zlib.gzip('hello', common.mustCall(function(err, out) {
7
const unzip = zlib.createGunzip();
8
unzip.close(common.mustCall(function() {}));
9
- assert.throws(function() {
10
- unzip.write(out);
11
- });
+ assert.throws(() => unzip.write(out), /^Error: zlib binding closed$/);
12
}));
0 commit comments