From f6e33ef8bcfd0ccb4c7e95a1ba249f0c8d79ece5 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 00000000000..92e21545e40 --- /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); +}