1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-24 15:19:26 -05:00
denoland-deno/tests/testdata/test/allow_none.ts
2024-07-25 15:30:28 +10:00

23 lines
313 B
TypeScript

import { unreachable } from "@std/assert";
const permissions: Deno.PermissionName[] = [
"read",
"write",
"net",
"env",
"run",
"ffi",
"hrtime",
];
for (const name of permissions) {
Deno.test({
name,
permissions: {
[name]: true,
},
fn() {
unreachable();
},
});
}