summaryrefslogtreecommitdiff
path: root/test/parallel/test-zlib-destroy.js
blob: d8eab42186a5fa61615d84e8de68a5eb22aefad1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
'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);