summaryrefslogtreecommitdiff
path: root/test/parallel/test-zlib-destroy.js
blob: bbfce22ee2cf8a1925330da3aa5563e8f97a73c4 (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);