summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/unit_node/zlib_test.ts18
1 files changed, 18 insertions, 0 deletions
diff --git a/cli/tests/unit_node/zlib_test.ts b/cli/tests/unit_node/zlib_test.ts
index 96d392d1d..6b09c50b0 100644
--- a/cli/tests/unit_node/zlib_test.ts
+++ b/cli/tests/unit_node/zlib_test.ts
@@ -11,6 +11,7 @@ import {
brotliDecompressSync,
createBrotliCompress,
createBrotliDecompress,
+ createDeflate,
} from "node:zlib";
import { Buffer } from "node:buffer";
import { createReadStream, createWriteStream } from "node:fs";
@@ -60,3 +61,20 @@ Deno.test("brotli compression", async () => {
// pass
}
});
+
+Deno.test(
+ "zlib create deflate with dictionary",
+ { sanitizeResources: false },
+ async () => {
+ const promise = deferred();
+ const handle = createDeflate({
+ dictionary: Buffer.alloc(0),
+ });
+
+ handle.on("close", () => promise.resolve());
+ handle.end();
+ handle.destroy();
+
+ await promise;
+ },
+);