summaryrefslogtreecommitdiff
path: root/cli/tests/unit_node/zlib_test.ts
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2023-12-13 22:28:56 +0530
committerGitHub <noreply@github.com>2023-12-13 09:58:56 -0700
commit38002ffdd7e602e666e48d39fc84f7093fad9dff (patch)
tree86832b04d70b497612ee7545325ae42bdd448d4f /cli/tests/unit_node/zlib_test.ts
parent10ab8c1ef1ccc93bd810c5636e2a70bb7c37e91e (diff)
fix(zlib): handle no flush flag in handle_.write (#21432)
Fixes https://github.com/denoland/deno/issues/21096
Diffstat (limited to 'cli/tests/unit_node/zlib_test.ts')
-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();
+ },
+);