Permalink
Browse files

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 <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information...
Trott authored and Fishrock123 committed Aug 28, 2016
1 parent cc61d1a commit 40e84218a0110b62727aeb7d0ec9b3c03f3a3642
Showing with 15 additions and 0 deletions.
  1. +15 −0 test/parallel/test-zlib-create-raw.js
@@ -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);
}

0 comments on commit 40e8421

Please sign in to comment.