From 0b65d027a1eb252afc660ae9c11301cc49c6b7f4 Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Thu, 20 Jun 2024 10:31:53 +0530 Subject: fix(ext/node): use cppgc for node:zlib (#24267) --- tests/unit_node/zlib_test.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'tests/unit_node') diff --git a/tests/unit_node/zlib_test.ts b/tests/unit_node/zlib_test.ts index 9122997fe..c7e9bbca9 100644 --- a/tests/unit_node/zlib_test.ts +++ b/tests/unit_node/zlib_test.ts @@ -36,7 +36,7 @@ Deno.test("brotli compression async", async () => { assertEquals(decompressed.toString(), "hello world"); }); -Deno.test("gzip compression sync", { sanitizeResources: false }, () => { +Deno.test("gzip compression sync", () => { const buf = Buffer.from("hello world"); const compressed = gzipSync(buf); const decompressed = unzipSync(compressed); @@ -94,7 +94,6 @@ Deno.test("brotli end-to-end with 4097 bytes", () => { Deno.test( "zlib create deflate with dictionary", - { sanitizeResources: false }, async () => { const { promise, resolve } = Promise.withResolvers(); const handle = createDeflate({ @@ -111,8 +110,6 @@ Deno.test( 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 @@ -142,7 +139,6 @@ Deno.test("should work with a buffer from an encoded string", () => { Deno.test( "zlib compression with dataview", - { sanitizeResources: false }, () => { const buf = Buffer.from("hello world"); const compressed = gzipSync(new DataView(buf.buffer)); @@ -151,9 +147,7 @@ Deno.test( }, ); -Deno.test("zlib compression with an encoded string", { - sanitizeResources: false, -}, () => { +Deno.test("zlib compression with an encoded string", () => { const encoder = new TextEncoder(); const buffer = encoder.encode("hello world"); const compressed = gzipSync(buffer); -- cgit v1.2.3