diff options
Diffstat (limited to 'tests/specs/test/allow_none/main.ts')
| -rw-r--r-- | tests/specs/test/allow_none/main.ts | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/specs/test/allow_none/main.ts b/tests/specs/test/allow_none/main.ts new file mode 100644 index 000000000..e59a30c4d --- /dev/null +++ b/tests/specs/test/allow_none/main.ts @@ -0,0 +1,22 @@ +import { unreachable } from "@std/assert"; + +const permissions: Deno.PermissionName[] = [ + "read", + "write", + "net", + "env", + "run", + "ffi", +]; + +for (const name of permissions) { + Deno.test({ + name, + permissions: { + [name]: true, + }, + fn() { + unreachable(); + }, + }); +} |
