summaryrefslogtreecommitdiff
path: root/cli/tests/034_onload/nest_imported.ts
blob: 6b4a40749b01edea33fab9927ef8372ef5996240 (plain)
1
2
3
4
5
6
7
8
9
10
import { assert } from "../../../std/testing/asserts.ts";

const handler = (e: Event): void => {
  assert(!e.cancelable);
  console.log(`got ${e.type} event in event handler (nest_imported)`);
};

window.addEventListener("load", handler);
window.addEventListener("unload", handler);
console.log("log from nest_imported script");