summaryrefslogtreecommitdiff
path: root/cli/js/unit_test_runner.ts
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2019-10-28 00:22:53 +0900
committerRy Dahl <ry@tinyclouds.org>2019-10-27 11:22:53 -0400
commitefd7e78af3fc086dfdec51738905665d38d08eb4 (patch)
treebb921f7d960f33c6d4d13c043a7a45ebe74290ba /cli/js/unit_test_runner.ts
parent2598f9c68d8983934c73c135c9d277b33c98e333 (diff)
Use web standard Permissions API (#3200)
Diffstat (limited to 'cli/js/unit_test_runner.ts')
-rwxr-xr-xcli/js/unit_test_runner.ts10
1 files changed, 7 insertions, 3 deletions
diff --git a/cli/js/unit_test_runner.ts b/cli/js/unit_test_runner.ts
index 913c575b2..ae255c385 100755
--- a/cli/js/unit_test_runner.ts
+++ b/cli/js/unit_test_runner.ts
@@ -1,7 +1,11 @@
#!/usr/bin/env -S deno run --reload --allow-run
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
import "./unit_tests.ts";
-import { permissionCombinations, parseUnitTestOutput } from "./test_util.ts";
+import {
+ permissionCombinations,
+ parseUnitTestOutput,
+ Permissions
+} from "./test_util.ts";
interface TestResult {
perms: string;
@@ -9,7 +13,7 @@ interface TestResult {
result: number;
}
-function permsToCliFlags(perms: Deno.Permissions): string[] {
+function permsToCliFlags(perms: Permissions): string[] {
return Object.keys(perms)
.map(
(key): string => {
@@ -25,7 +29,7 @@ function permsToCliFlags(perms: Deno.Permissions): string[] {
.filter((e): boolean => e.length > 0);
}
-function fmtPerms(perms: Deno.Permissions): string {
+function fmtPerms(perms: Permissions): string {
let fmt = permsToCliFlags(perms).join(" ");
if (!fmt) {