mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
test: add test for zlib.create*Raw()
Currently, there are no tests that exercise `zlib.createInflateRaw()` or `zlib.createDeflateRaw()`. This adds minimal tests that invoke the functions and confirm that they return `zlib.InflateRaw`/`zlib.DeflateRaw` objects. PR-URL: https://github.com/nodejs/node/pull/8306 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
eca74a9d91
commit
f6e33ef8bc
15
test/parallel/test-zlib-create-raw.js
Normal file
15
test/parallel/test-zlib-create-raw.js
Normal file
@ -0,0 +1,15 @@
|
||||
'use strict';
|
||||
|
||||
require('../common');
|
||||
const assert = require('assert');
|
||||
const zlib = require('zlib');
|
||||
|
||||
{
|
||||
const inflateRaw = zlib.createInflateRaw();
|
||||
assert(inflateRaw instanceof zlib.InflateRaw);
|
||||
}
|
||||
|
||||
{
|
||||
const deflateRaw = zlib.createDeflateRaw();
|
||||
assert(deflateRaw instanceof zlib.DeflateRaw);
|
||||
}
|
Loading…
Reference in New Issue
Block a user