diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-04-21 16:40:10 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-21 16:40:10 -0400 |
commit | 9dfebbc9496138efbeedc431068f41662c780f3e (patch) | |
tree | c3718c3dc132d11c08c8fc18933daebf886bf787 /js/globals_test.ts | |
parent | 6cded14bdf313762956d4d5361cfe8115628b535 (diff) |
Fix eslint warnings (#2151)
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Co-authored-by: LE GOFF Vincent <g_n_s@hotmail.fr>
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 |