aboutsummaryrefslogtreecommitdiff
path: root/test/js/web/url/url.test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'test/js/web/url/url.test.ts')
-rw-r--r--test/js/web/url/url.test.ts104
1 files changed, 52 insertions, 52 deletions
diff --git a/test/js/web/url/url.test.ts b/test/js/web/url/url.test.ts
index 33b33aefd..4e71c44d7 100644
--- a/test/js/web/url/url.test.ts
+++ b/test/js/web/url/url.test.ts
@@ -62,34 +62,34 @@ describe("url", () => {
});
it("prints", () => {
expect(Bun.inspect(new URL("https://example.com"))).toBe(`URL {
- "href": "https://example.com/",
- "origin": "https://example.com",
- "protocol": "https:",
- "username": "",
- "password": "",
- "host": "example.com",
- "hostname": "example.com",
- "port": "",
- "pathname": "/",
- "hash": "",
- "search": "",
- "searchParams": URLSearchParams {
- "append": [Function: append],
- "delete": [Function: delete],
- "get": [Function: get],
- "getAll": [Function: getAll],
- "has": [Function: has],
- "set": [Function: set],
- "sort": [Function: sort],
- "entries": [Function: entries],
- "keys": [Function: keys],
- "values": [Function: values],
- "forEach": [Function: forEach],
- "toString": [Function: toString],
+ href: "https://example.com/",
+ origin: "https://example.com",
+ protocol: "https:",
+ username: "",
+ password: "",
+ host: "example.com",
+ hostname: "example.com",
+ port: "",
+ pathname: "/",
+ hash: "",
+ search: "",
+ searchParams: URLSearchParams {
+ append: [Function: append],
+ delete: [Function: delete],
+ get: [Function: get],
+ getAll: [Function: getAll],
+ has: [Function: has],
+ set: [Function: set],
+ sort: [Function: sort],
+ entries: [Function: entries],
+ keys: [Function: keys],
+ values: [Function: values],
+ forEach: [Function: forEach],
+ toString: [Function: toString],
[Symbol(Symbol.iterator)]: [Function: entries]
},
- "toJSON": [Function: toJSON],
- "toString": [Function: toString]
+ toJSON: [Function: toJSON],
+ toString: [Function: toString]
}`);
expect(
@@ -97,34 +97,34 @@ describe("url", () => {
new URL("https://github.com/oven-sh/bun/issues/135?hello%20i%20have%20spaces%20thank%20you%20good%20night"),
),
).toBe(`URL {
- "href": "https://github.com/oven-sh/bun/issues/135?hello%20i%20have%20spaces%20thank%20you%20good%20night",
- "origin": "https://github.com",
- "protocol": "https:",
- "username": "",
- "password": "",
- "host": "github.com",
- "hostname": "github.com",
- "port": "",
- "pathname": "/oven-sh/bun/issues/135",
- "hash": "",
- "search": "?hello%20i%20have%20spaces%20thank%20you%20good%20night",
- "searchParams": URLSearchParams {
- "append": [Function: append],
- "delete": [Function: delete],
- "get": [Function: get],
- "getAll": [Function: getAll],
- "has": [Function: has],
- "set": [Function: set],
- "sort": [Function: sort],
- "entries": [Function: entries],
- "keys": [Function: keys],
- "values": [Function: values],
- "forEach": [Function: forEach],
- "toString": [Function: toString],
+ href: "https://github.com/oven-sh/bun/issues/135?hello%20i%20have%20spaces%20thank%20you%20good%20night",
+ origin: "https://github.com",
+ protocol: "https:",
+ username: "",
+ password: "",
+ host: "github.com",
+ hostname: "github.com",
+ port: "",
+ pathname: "/oven-sh/bun/issues/135",
+ hash: "",
+ search: "?hello%20i%20have%20spaces%20thank%20you%20good%20night",
+ searchParams: URLSearchParams {
+ append: [Function: append],
+ delete: [Function: delete],
+ get: [Function: get],
+ getAll: [Function: getAll],
+ has: [Function: has],
+ set: [Function: set],
+ sort: [Function: sort],
+ entries: [Function: entries],
+ keys: [Function: keys],
+ values: [Function: values],
+ forEach: [Function: forEach],
+ toString: [Function: toString],
[Symbol(Symbol.iterator)]: [Function: entries]
},
- "toJSON": [Function: toJSON],
- "toString": [Function: toString]
+ toJSON: [Function: toJSON],
+ toString: [Function: toString]
}`);
});
it("works", () => {