mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-06-06 05:38:44 +08:00
12 lines
379 B
TypeScript
12 lines
379 B
TypeScript
import { assertEquals } from "@std/assert";
|
|
import { SortableURLSearchParams } from "./SortableURLSearchParams.ts";
|
|
|
|
Deno.test("SortableURLSearchParams_test", () => {
|
|
const s = new SortableURLSearchParams(undefined, ["dad"]);
|
|
s.append("a", "1");
|
|
s.append("d", "3");
|
|
s.append("b", "4");
|
|
s.append("dad", "4");
|
|
assertEquals(s.toString(), "a=1&b=4&d=3");
|
|
});
|