diff options
Diffstat (limited to 'js/globals_test.ts')
-rw-r--r-- | js/globals_test.ts | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/js/globals_test.ts b/js/globals_test.ts new file mode 100644 index 000000000..e40718f28 --- /dev/null +++ b/js/globals_test.ts @@ -0,0 +1,17 @@ +import { test, assert } from "./test_util.ts"; + +test(function globalThisExists() { + assert(globalThis != null); +}); + +test(function windowExists() { + assert(window != null); +}); + +test(function windowWindowExists() { + assert(window.window === window); +}); + +test(function globalThisEqualsWindow() { + assert(globalThis === window); +}); |