summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/unit/body_test.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/cli/tests/unit/body_test.ts b/cli/tests/unit/body_test.ts
index a6df3102e..df824e1ae 100644
--- a/cli/tests/unit/body_test.ts
+++ b/cli/tests/unit/body_test.ts
@@ -72,3 +72,10 @@ unitTest(
assertEquals(formData.get("field_2")!.toString(), "<Deno>");
}
);
+
+unitTest({ perms: {} }, async function bodyURLSearchParams(): Promise<void> {
+ const body = buildBody(new URLSearchParams({ hello: "world" }));
+
+ const text = await body.text();
+ assertEquals(text, "hello=world");
+});