summaryrefslogtreecommitdiff
path: root/cli/tests/034_onload/main.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/034_onload/main.ts')
-rw-r--r--cli/tests/034_onload/main.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/tests/034_onload/main.ts b/cli/tests/034_onload/main.ts
index f8c48ba7b..7696ec122 100644
--- a/cli/tests/034_onload/main.ts
+++ b/cli/tests/034_onload/main.ts
@@ -4,7 +4,7 @@ import "./imported.ts";
assert(window.hasOwnProperty("onload"));
assert(window.onload === null);
-const eventHandler = (e: Event): void => {
+const eventHandler = (e: Event) => {
assert(!e.cancelable);
console.log(`got ${e.type} event in event handler (main)`);
};
@@ -13,12 +13,12 @@ window.addEventListener("load", eventHandler);
window.addEventListener("unload", eventHandler);
-window.onload = (e: Event): void => {
+window.onload = (e: Event) => {
assert(!e.cancelable);
console.log(`got ${e.type} event in onload function`);
};
-window.onunload = (e: Event): void => {
+window.onunload = (e: Event) => {
assert(!e.cancelable);
console.log(`got ${e.type} event in onunload function`);
};