Skip to content

Commit 2f458ea

Browse files
TrottMylesBorins
authored andcommitted
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: #8306 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent e069dc4 commit 2f458ea

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/parallel/test-zlib-create-raw.js

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
'use strict';
2+
3+
require('../common');
4+
const assert = require('assert');
5+
const zlib = require('zlib');
6+
7+
{
8+
const inflateRaw = zlib.createInflateRaw();
9+
assert(inflateRaw instanceof zlib.InflateRaw);
10+
}
11+
12+
{
13+
const deflateRaw = zlib.createDeflateRaw();
14+
assert(deflateRaw instanceof zlib.DeflateRaw);
15+
}

0 commit comments

Comments
 (0)