nodejs/test/parallel/test-zlib-destroy.js
Ruben Bridgewater 9edce1e12a
benchmark,doc,lib,test: capitalize comments
This updates a lot of comments.

PR-URL: https://github.com/nodejs/node/pull/26223
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
2019-02-28 18:31:10 +01:00

14 lines
270 B
JavaScript

'use strict';
require('../common');
const assert = require('assert');
const zlib = require('zlib');
// Verify that the zlib transform does clean up
// the handle when calling destroy.
const ts = zlib.createGzip();
ts.destroy();
assert.strictEqual(ts._handle, null);