summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2021-12-14 00:35:59 +0900
committerGitHub <noreply@github.com>2021-12-14 00:35:59 +0900
commit308813ae29763512a8be1044b31b8d5dad36c38c (patch)
tree1837d0d97b8320afddbbad5bf1e29ae4a26bbdf5 /cli/tests
parenta2b4d1354077b676459142eb399df9d5a70c0c5f (diff)
fix(ext/web): set location undefined when `--location` is not specified (#13046)
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/integration/run_tests.rs1
-rw-r--r--cli/tests/testdata/071_location_unset.ts.out2
2 files changed, 1 insertions, 2 deletions
diff --git a/cli/tests/integration/run_tests.rs b/cli/tests/integration/run_tests.rs
index dd4482423..b6929b58a 100644
--- a/cli/tests/integration/run_tests.rs
+++ b/cli/tests/integration/run_tests.rs
@@ -233,7 +233,6 @@ itest!(_070_location {
itest!(_071_location_unset {
args: "run 071_location_unset.ts",
output: "071_location_unset.ts.out",
- exit_code: 1,
});
itest!(_072_location_relative_fetch {
diff --git a/cli/tests/testdata/071_location_unset.ts.out b/cli/tests/testdata/071_location_unset.ts.out
index 43308f3bd..f786d7a64 100644
--- a/cli/tests/testdata/071_location_unset.ts.out
+++ b/cli/tests/testdata/071_location_unset.ts.out
@@ -1,4 +1,4 @@
[WILDCARD][Function: Location]
Location {}
-error: Uncaught ReferenceError: Access to "location", run again with --location <href>.
+undefined
[WILDCARD]