summaryrefslogtreecommitdiff
path: root/cli/tests/unit/test_util.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/unit/test_util.ts')
-rw-r--r--cli/tests/unit/test_util.ts18
1 files changed, 9 insertions, 9 deletions
diff --git a/cli/tests/unit/test_util.ts b/cli/tests/unit/test_util.ts
index 420a5fd9a..bf6c66fee 100644
--- a/cli/tests/unit/test_util.ts
+++ b/cli/tests/unit/test_util.ts
@@ -27,19 +27,19 @@ export { readLines } from "../../../test_util/std/io/bufio.ts";
export { parse as parseArgs } from "../../../test_util/std/flags/mod.ts";
interface UnitTestPermissions {
- read?: boolean;
- write?: boolean;
- net?: boolean;
- env?: boolean;
- run?: boolean;
- ffi?: boolean;
- hrtime?: boolean;
+ env?: "inherit" | boolean | string[];
+ hrtime?: "inherit" | boolean;
+ net?: "inherit" | boolean | string[];
+ ffi?: "inherit" | boolean;
+ read?: "inherit" | boolean | Array<string | URL>;
+ run?: "inherit" | boolean | Array<string | URL>;
+ write?: "inherit" | boolean | Array<string | URL>;
}
interface UnitTestOptions {
ignore?: boolean;
only?: boolean;
- perms?: UnitTestPermissions;
+ permissions?: UnitTestPermissions;
}
type TestFunction = () => void | Promise<void>;
@@ -86,7 +86,7 @@ export function unitTest(
run: false,
ffi: false,
hrtime: false,
- }, options.perms),
+ }, options.permissions),
};
Deno.test(testDefinition);