summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/integration/run_tests.rs5
-rw-r--r--cli/tests/testdata/colors_without_globalThis.js1
2 files changed, 6 insertions, 0 deletions
diff --git a/cli/tests/integration/run_tests.rs b/cli/tests/integration/run_tests.rs
index bc137a7fd..2f32fd67f 100644
--- a/cli/tests/integration/run_tests.rs
+++ b/cli/tests/integration/run_tests.rs
@@ -2479,3 +2479,8 @@ itest!(import_assertions_type_check {
output: "import_assertions/type_check.out",
exit_code: 1,
});
+
+itest!(colors_without_global_this {
+ args: "run colors_without_globalThis.js",
+ output_str: Some("true\n"),
+});
diff --git a/cli/tests/testdata/colors_without_globalThis.js b/cli/tests/testdata/colors_without_globalThis.js
new file mode 100644
index 000000000..f9d4b68fc
--- /dev/null
+++ b/cli/tests/testdata/colors_without_globalThis.js
@@ -0,0 +1 @@
+console.log(delete globalThis.globalThis);