diff options
Diffstat (limited to 'cli/tests/unit_node/querystring_test.ts')
-rw-r--r-- | cli/tests/unit_node/querystring_test.ts | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/cli/tests/unit_node/querystring_test.ts b/cli/tests/unit_node/querystring_test.ts deleted file mode 100644 index 9831d92ed..000000000 --- a/cli/tests/unit_node/querystring_test.ts +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. -import { assertEquals } from "@test_util/std/assert/mod.ts"; -import { parse, stringify } from "node:querystring"; - -Deno.test({ - name: "stringify", - fn() { - assertEquals( - stringify({ - a: "hello", - b: 5, - c: true, - d: ["foo", "bar"], - }), - "a=hello&b=5&c=true&d=foo&d=bar", - ); - }, -}); - -Deno.test({ - name: "parse", - fn() { - assertEquals(parse("a=hello&b=5&c=true&d=foo&d=bar"), { - a: "hello", - b: "5", - c: "true", - d: ["foo", "bar"], - }); - }, -}); - -// https://github.com/denoland/deno/issues/21734 -Deno.test({ - name: "stringify options no encode", - fn() { - assertEquals( - stringify( - { - a: "hello", - b: 5, - c: true, - d: ["foo", "bar"], - }, - "&", - "=", - {}, - ), - "a=hello&b=5&c=true&d=foo&d=bar", - ); - }, -}); |