Skip to content

Commit

Permalink
spec test
Browse files Browse the repository at this point in the history
  • Loading branch information
lowlighter committed Sep 22, 2024
1 parent 05c13b9 commit eec78a8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/specs/permission/request_no_prompt/__test__.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"args": "run --no-prompt main.ts",
"output": "main.out"
}
1 change: 1 addition & 0 deletions tests/specs/permission/request_no_prompt/main.out
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PermissionStatus { state: "denied", onchange: null }
1 change: 1 addition & 0 deletions tests/specs/permission/request_no_prompt/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log(await Deno.permissions.request({ name: "read" }));

0 comments on commit eec78a8

Please sign in to comment.