summaryrefslogtreecommitdiff
path: root/tests/integration/run_tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration/run_tests.rs')
-rw-r--r--tests/integration/run_tests.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/integration/run_tests.rs b/tests/integration/run_tests.rs
index 1e1d6ed61..b3ad15c81 100644
--- a/tests/integration/run_tests.rs
+++ b/tests/integration/run_tests.rs
@@ -3513,6 +3513,22 @@ itest!(no_prompt_flag {
});
#[test]
+fn permission_request_with_no_prompt() {
+ TestContext::default()
+ .new_command()
+ .env("NO_COLOR", "1")
+ .args_vec([
+ "run",
+ "--quiet",
+ "--no-prompt",
+ "run/permission_request_no_prompt.ts",
+ ])
+ .with_pty(|mut console| {
+ console.expect("PermissionStatus { state: \"denied\", onchange: null }");
+ });
+}
+
+#[test]
fn deno_no_prompt_environment_variable() {
let output = util::deno_cmd()
.current_dir(util::testdata_path())