summaryrefslogtreecommitdiff
path: root/tests/testdata/test/allow_none.ts
blob: 359f317007b8fa78437941f7453e5d33a6b9693a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { unreachable } from "../../../tests/util/std/assert/mod.ts";

const permissions: Deno.PermissionName[] = [
  "read",
  "write",
  "net",
  "env",
  "run",
  "ffi",
  "hrtime",
];

for (const name of permissions) {
  Deno.test({
    name,
    permissions: {
      [name]: true,
    },
    fn() {
      unreachable();
    },
  });
}