diff options
| author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-02-26 14:49:50 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-26 14:49:50 +0100 |
| commit | 4bea1d06c7ddb177ed20e0f32b70d7ff889871ab (patch) | |
| tree | 3884dba7059f2cd727942e728209651c8454b837 /cli/tests/testdata/test/no_prompt_with_denied_perms.ts | |
| parent | 4a20435d3c4f7875c1d6f681cd5c791de8722496 (diff) | |
fix(test): use --no-prompt by default (#13777)
This commit changes "deno test" subcommand, to
always never prompt for permissions (ie. as if "deno test"
was run with "--no-prompt" flag).
Diffstat (limited to 'cli/tests/testdata/test/no_prompt_with_denied_perms.ts')
| -rw-r--r-- | cli/tests/testdata/test/no_prompt_with_denied_perms.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cli/tests/testdata/test/no_prompt_with_denied_perms.ts b/cli/tests/testdata/test/no_prompt_with_denied_perms.ts new file mode 100644 index 000000000..ee3736cff --- /dev/null +++ b/cli/tests/testdata/test/no_prompt_with_denied_perms.ts @@ -0,0 +1,3 @@ +Deno.test("no prompt", { permissions: { read: false } }, () => { + Deno.readTextFile("./some_file.txt"); +}); |
