summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-01-24 20:43:31 +0100
committerGitHub <noreply@github.com>2024-01-24 20:43:31 +0100
commit8e67bf829aa110c6318d2043e6f4f9d4c97f1a51 (patch)
tree8e0665e77b9f6253505c04e828ca7b54709f5a36 /cli/tests
parent300eeb343efa00d9572d3befa47ca88fb51c7ac6 (diff)
Revert "feat: deprecate `window` global (#22057)" (#22084)
This reverts commit 930ce2087051b4e45b2026ce7a77c14360a6993f. This is producing false-positives that are not actionable to users. We're gonna address this in another release.
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/testdata/npm/compare_globals/main.out1
-rw-r--r--cli/tests/testdata/run/webstorage/logger.ts2
-rw-r--r--cli/tests/testdata/run/webstorage/serialization.ts6
-rw-r--r--cli/tests/testdata/run/webstorage/setter.ts2
4 files changed, 5 insertions, 6 deletions
diff --git a/cli/tests/testdata/npm/compare_globals/main.out b/cli/tests/testdata/npm/compare_globals/main.out
index c59800eb4..0e366fae7 100644
--- a/cli/tests/testdata/npm/compare_globals/main.out
+++ b/cli/tests/testdata/npm/compare_globals/main.out
@@ -20,7 +20,6 @@ false
true
true
true
-[WILDCARD]
true
false
false
diff --git a/cli/tests/testdata/run/webstorage/logger.ts b/cli/tests/testdata/run/webstorage/logger.ts
index feadd39eb..3898c4445 100644
--- a/cli/tests/testdata/run/webstorage/logger.ts
+++ b/cli/tests/testdata/run/webstorage/logger.ts
@@ -1 +1 @@
-console.log(globalThis.localStorage);
+console.log(window.localStorage);
diff --git a/cli/tests/testdata/run/webstorage/serialization.ts b/cli/tests/testdata/run/webstorage/serialization.ts
index f125331bb..f3791d355 100644
--- a/cli/tests/testdata/run/webstorage/serialization.ts
+++ b/cli/tests/testdata/run/webstorage/serialization.ts
@@ -1,4 +1,4 @@
-globalThis.sessionStorage.setItem("hello", "deno");
+window.sessionStorage.setItem("hello", "deno");
-console.log(globalThis.localStorage);
-console.log(globalThis.sessionStorage);
+console.log(window.localStorage);
+console.log(window.sessionStorage);
diff --git a/cli/tests/testdata/run/webstorage/setter.ts b/cli/tests/testdata/run/webstorage/setter.ts
index cf5a7bfaf..ec6d474f5 100644
--- a/cli/tests/testdata/run/webstorage/setter.ts
+++ b/cli/tests/testdata/run/webstorage/setter.ts
@@ -1 +1 @@
-globalThis.localStorage.setItem("hello", "deno");
+window.localStorage.setItem("hello", "deno");