summaryrefslogtreecommitdiff
path: root/cli/tests/integration/test_tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/integration/test_tests.rs')
-rw-r--r--cli/tests/integration/test_tests.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/cli/tests/integration/test_tests.rs b/cli/tests/integration/test_tests.rs
index 022e40f4b..0cbc3130f 100644
--- a/cli/tests/integration/test_tests.rs
+++ b/cli/tests/integration/test_tests.rs
@@ -1,6 +1,7 @@
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
use crate::itest;
+use deno_core::url::Url;
use test_util as util;
#[test]
@@ -351,3 +352,19 @@ fn recursive_permissions_pledge() {
"pledge test permissions called before restoring previous pledge"
));
}
+
+#[test]
+fn file_protocol() {
+ let file_url =
+ Url::from_file_path(util::testdata_path().join("test/file_protocol.ts"))
+ .unwrap()
+ .to_string();
+
+ (util::CheckOutputIntegrationTest {
+ args_vec: vec!["test", &file_url],
+ exit_code: 0,
+ output: "test/file_protocol.out",
+ ..Default::default()
+ })
+ .run();
+}