0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-21 21:19:50 +01:00
nodejs/test/parallel/test-zlib-no-stream.js
Matteo Collina e57d8af7e2 stream,zlib: do not use _stream_* anymore
PR-URL: https://github.com/nodejs/node/pull/36618
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
2020-12-29 01:47:57 +01:00

15 lines
382 B
JavaScript

/* eslint-disable node-core/required-modules */
/* eslint-disable node-core/require-common-first */
'use strict';
// We are not loading common because it will load the stream module,
// defeating the purpose of this test.
const { gzipSync } = require('zlib');
// Avoid regressions such as https://github.com/nodejs/node/issues/36615
// This must not throw
gzipSync('fooobar');