summaryrefslogtreecommitdiff
path: root/cli/tests/unit/globals_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/unit/globals_test.ts')
-rw-r--r--cli/tests/unit/globals_test.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/cli/tests/unit/globals_test.ts b/cli/tests/unit/globals_test.ts
index dabe3c08e..5fc125296 100644
--- a/cli/tests/unit/globals_test.ts
+++ b/cli/tests/unit/globals_test.ts
@@ -5,6 +5,13 @@ unitTest(function globalThisExists(): void {
assert(globalThis != null);
});
+unitTest(function noInternalGlobals(): void {
+ // globalThis.__bootstrap should not be there.
+ for (const key of Object.keys(globalThis)) {
+ assert(!key.startsWith("_"));
+ }
+});
+
unitTest(function windowExists(): void {
assert(window != null);
});