diff options
author | Adilson Schmitt Junior <adilsonschj@gmail.com> | 2022-05-02 21:43:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-02 15:43:03 -0400 |
commit | 256dcb058ac2dd2a935076922265278c56264050 (patch) | |
tree | 52e1e8557ab7c7405c0373f52bb51cafdd003d14 /cli/tests/integration/test_tests.rs | |
parent | 66b9187a2dd2ea96e760b9bcd81a578dd338147d (diff) |
fix(test/bench): accept file protocol module specifier CLI args (#14429)
Diffstat (limited to 'cli/tests/integration/test_tests.rs')
-rw-r--r-- | cli/tests/integration/test_tests.rs | 17 |
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(); +} |