summaryrefslogtreecommitdiff
path: root/tests/integration/watcher_tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration/watcher_tests.rs')
-rw-r--r--tests/integration/watcher_tests.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/integration/watcher_tests.rs b/tests/integration/watcher_tests.rs
index 9685d7ae8..abc5365b8 100644
--- a/tests/integration/watcher_tests.rs
+++ b/tests/integration/watcher_tests.rs
@@ -796,11 +796,11 @@ async fn run_watch_load_unload_events() {
file_to_watch.write(
r#"
setInterval(() => {}, 0);
- window.addEventListener("load", () => {
+ globalThis.addEventListener("load", () => {
console.log("load");
});
- window.addEventListener("unload", () => {
+ globalThis.addEventListener("unload", () => {
console.log("unload");
});
"#,
@@ -827,11 +827,11 @@ async fn run_watch_load_unload_events() {
// Change content of the file, this time without an interval to keep it alive.
file_to_watch.write(
r#"
- window.addEventListener("load", () => {
+ globalThis.addEventListener("load", () => {
console.log("load");
});
- window.addEventListener("unload", () => {
+ globalThis.addEventListener("unload", () => {
console.log("unload");
});
"#,