summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/integration/compat_tests.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/cli/tests/integration/compat_tests.rs b/cli/tests/integration/compat_tests.rs
index 17388a78e..2886056ec 100644
--- a/cli/tests/integration/compat_tests.rs
+++ b/cli/tests/integration/compat_tests.rs
@@ -29,3 +29,20 @@ fn globals_in_repl() {
);
assert!(out.contains("true"));
}
+
+#[test]
+fn node_compat_url() {
+ let (out, err) = util::run_and_collect_output_with_args(
+ false,
+ vec!["repl", "--compat", "--unstable", "--quiet"],
+ None,
+ Some(vec![(
+ "DENO_NODE_COMPAT_URL".to_string(),
+ "file:///non_existent/".to_string(),
+ )]),
+ false,
+ );
+ assert!(out.is_empty());
+ assert!(!err.is_empty());
+ assert!(err.contains("file:///non_existent/node/global.ts"));
+}