0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-30 09:08:00 -04:00
denoland-deno/cli/tests/testdata/test/no_prompt_with_denied_perms.ts
Bartek Iwańczuk 4bea1d06c7
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).
2022-02-26 14:49:50 +01:00

3 lines
109 B
TypeScript

Deno.test("no prompt", { permissions: { read: false } }, () => {
Deno.readTextFile("./some_file.txt");
});