summaryrefslogtreecommitdiff
path: root/cli/tests/unit_node
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/unit_node')
-rw-r--r--cli/tests/unit_node/zlib_test.ts15
1 files changed, 15 insertions, 0 deletions
diff --git a/cli/tests/unit_node/zlib_test.ts b/cli/tests/unit_node/zlib_test.ts
index 5f82b1202..fc9eaeb5b 100644
--- a/cli/tests/unit_node/zlib_test.ts
+++ b/cli/tests/unit_node/zlib_test.ts
@@ -81,3 +81,18 @@ Deno.test(
await promise;
},
);
+
+Deno.test(
+ "zlib flush i32",
+ // FIXME: Handle is not closed properly
+ { sanitizeResources: false },
+ function () {
+ const handle = createDeflate({
+ // @ts-expect-error: passing non-int flush value
+ flush: "",
+ });
+
+ handle.end();
+ handle.destroy();
+ },
+);