summaryrefslogtreecommitdiff
path: root/tests/unit_node/zlib_test.ts
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2024-06-20 10:31:53 +0530
committerGitHub <noreply@github.com>2024-06-20 10:31:53 +0530
commit0b65d027a1eb252afc660ae9c11301cc49c6b7f4 (patch)
tree953c547395c9f1bdc057f34befc609817834d4de /tests/unit_node/zlib_test.ts
parent2cfaee0838cd9c7b69877f28eda437fe9e51e2d8 (diff)
fix(ext/node): use cppgc for node:zlib (#24267)
Diffstat (limited to 'tests/unit_node/zlib_test.ts')
-rw-r--r--tests/unit_node/zlib_test.ts10
1 files changed, 2 insertions, 8 deletions
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<void>();
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);