From 40e84218a0110b62727aeb7d0ec9b3c03f3a3642 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sat, 27 Aug 2016 20:42:51 -0700 Subject: [PATCH] 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 Reviewed-By: James M Snell --- test/parallel/test-zlib-create-raw.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/parallel/test-zlib-create-raw.js diff --git a/test/parallel/test-zlib-create-raw.js b/test/parallel/test-zlib-create-raw.js new file mode 100644 index 00000000000000..92e21545e40905 --- /dev/null +++ b/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); +}