diff options
Diffstat (limited to 'js/globals_test.ts')
-rw-r--r-- | js/globals_test.ts | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/js/globals_test.ts b/js/globals_test.ts index 4937e6c9a..3085118de 100644 --- a/js/globals_test.ts +++ b/js/globals_test.ts @@ -1,40 +1,40 @@ // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { test, assert } from "./test_util.ts"; -test(function globalThisExists() { +test(function globalThisExists(): void { assert(globalThis != null); }); -test(function windowExists() { +test(function windowExists(): void { assert(window != null); }); -test(function windowWindowExists() { +test(function windowWindowExists(): void { assert(window.window === window); }); -test(function globalThisEqualsWindow() { +test(function globalThisEqualsWindow(): void { // @ts-ignore (TypeScript thinks globalThis and window don't match) assert(globalThis === window); }); -test(function DenoNamespaceExists() { +test(function DenoNamespaceExists(): void { assert(Deno != null); }); -test(function DenoNamespaceEqualsWindowDeno() { +test(function DenoNamespaceEqualsWindowDeno(): void { assert(Deno === window.Deno); }); -test(function DenoNamespaceIsFrozen() { +test(function DenoNamespaceIsFrozen(): void { assert(Object.isFrozen(Deno)); }); -test(function webAssemblyExists() { +test(function webAssemblyExists(): void { assert(typeof WebAssembly.compile === "function"); }); -test(function DenoNamespaceImmutable() { +test(function DenoNamespaceImmutable(): void { const denoCopy = window.Deno; try { // @ts-ignore |