diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2020-10-11 23:04:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-12 09:04:43 +1100 |
commit | 5f3028af13c25fb3af8f36d3d5913ef0688e5ce7 (patch) | |
tree | d997dc40bb558345fa490eaa04730c629c5275f8 /cli/tests/unit | |
parent | 265a9fb9323a11067b4b826acc7624f2e62f1102 (diff) |
fix(cli/rt/main): Add global interface objects (#7875)
Diffstat (limited to 'cli/tests/unit')
-rw-r--r-- | cli/tests/unit/globals_test.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cli/tests/unit/globals_test.ts b/cli/tests/unit/globals_test.ts index 6c83b1b44..53fafc5b6 100644 --- a/cli/tests/unit/globals_test.ts +++ b/cli/tests/unit/globals_test.ts @@ -36,6 +36,14 @@ unitTest(function globalThisEqualsSelf(): void { assert(globalThis === self); }); +unitTest(function globalThisInstanceofWindow(): void { + assert(globalThis instanceof Window); +}); + +unitTest(function globalThisInstanceofEventTarget(): void { + assert(globalThis instanceof EventTarget); +}); + unitTest(function DenoNamespaceExists(): void { assert(Deno != null); }); |