summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/071_location_unset.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/071_location_unset.ts')
-rw-r--r--cli/tests/testdata/071_location_unset.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/cli/tests/testdata/071_location_unset.ts b/cli/tests/testdata/071_location_unset.ts
index bb60df8c4..f560d2716 100644
--- a/cli/tests/testdata/071_location_unset.ts
+++ b/cli/tests/testdata/071_location_unset.ts
@@ -1,3 +1,16 @@
console.log(Location);
console.log(Location.prototype);
console.log(location);
+
+globalThis.location = {
+ hash: "#bat",
+ host: "foo",
+ hostname: "foo",
+ href: "https://foo/bar?baz#bat",
+ origin: "https://foo",
+ pathname: "/bar",
+ port: "",
+ protocol: "https:",
+ search: "?baz",
+};
+console.log(location.pathname);