mirror of
https://github.com/denoland/deno.git
synced 2024-11-24 15:19:26 -05:00
test: update expected test output for 'deno test' (#13882)
This commit is contained in:
parent
a5957f46ee
commit
2e30112e62
4 changed files with 30 additions and 10 deletions
16
cli/tests/testdata/test/no_prompt_by_default.out
vendored
16
cli/tests/testdata/test/no_prompt_by_default.out
vendored
|
@ -1,7 +1,17 @@
|
|||
Check [WILDCARD]/no_prompt_by_default.ts
|
||||
running 1 test from [WILDCARD]/no_prompt_by_default.ts
|
||||
test no prompt ...
|
||||
test result: FAILED. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out ([WILDCARD])
|
||||
test no prompt ... FAILED ([WILDCARD]ms)
|
||||
|
||||
error: Uncaught (in promise) PermissionDenied: Requires read access to "./some_file.txt", run again with the --allow-read flag
|
||||
failures:
|
||||
|
||||
no prompt
|
||||
PermissionDenied: Requires read access to "./some_file.txt", run again with the --allow-read flag
|
||||
[WILDCARD]
|
||||
|
||||
failures:
|
||||
|
||||
no prompt
|
||||
|
||||
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out ([WILDCARD]ms)
|
||||
|
||||
error: Test failed
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Deno.test("no prompt", () => {
|
||||
Deno.readTextFile("./some_file.txt");
|
||||
Deno.test("no prompt", async () => {
|
||||
await Deno.readTextFile("./some_file.txt");
|
||||
});
|
||||
|
|
|
@ -1,7 +1,17 @@
|
|||
Check [WILDCARD]/no_prompt_with_denied_perms.ts
|
||||
running 1 test from [WILDCARD]/no_prompt_with_denied_perms.ts
|
||||
test no prompt ...
|
||||
test result: FAILED. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out ([WILDCARD])
|
||||
test no prompt ... FAILED ([WILDCARD]ms)
|
||||
|
||||
error: Uncaught (in promise) PermissionDenied: Requires read access to "./some_file.txt", run again with the --allow-read flag
|
||||
failures:
|
||||
|
||||
no prompt
|
||||
PermissionDenied: Requires read access to "./some_file.txt", run again with the --allow-read flag
|
||||
[WILDCARD]
|
||||
|
||||
failures:
|
||||
|
||||
no prompt
|
||||
|
||||
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out ([WILDCARD]ms)
|
||||
|
||||
error: Test failed
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Deno.test("no prompt", { permissions: { read: false } }, () => {
|
||||
Deno.readTextFile("./some_file.txt");
|
||||
Deno.test("no prompt", { permissions: { read: false } }, async () => {
|
||||
await Deno.readTextFile("./some_file.txt");
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue