1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -05:00
denoland-deno/tests/specs/test/allow_none/main.ts

23 lines
301 B
TypeScript
Raw Permalink Normal View History

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();
},
});
}