nodejs/test/parallel/test-zlib-destroy.js

14 lines
270 B
JavaScript
Raw Normal View History

2022-08-16 11:12:47 +08:00
'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);