summaryrefslogtreecommitdiff
path: root/cli/js/unit_test_runner.ts
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2020-01-09 01:17:44 +1100
committerRy Dahl <ry@tinyclouds.org>2020-01-08 09:17:44 -0500
commitd325566a7e2d736870990835dfe076a30a1b26ab (patch)
treefed5de4826b04140922c2573bdad2e8c6fd2445e /cli/js/unit_test_runner.ts
parentcbdf9c50095b86e72a8e0e715a02f6eb327f7c53 (diff)
Runtime Compiler API (#3442)
Also restructures the compiler TypeScript files to make them easier to manage and eventually integrate deno_typescript fully.
Diffstat (limited to 'cli/js/unit_test_runner.ts')
-rwxr-xr-xcli/js/unit_test_runner.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/js/unit_test_runner.ts b/cli/js/unit_test_runner.ts
index c2c654696..dd095058f 100755
--- a/cli/js/unit_test_runner.ts
+++ b/cli/js/unit_test_runner.ts
@@ -9,14 +9,14 @@ import {
interface TestResult {
perms: string;
- output: string;
+ output?: string;
result: number;
}
function permsToCliFlags(perms: Permissions): string[] {
return Object.keys(perms)
- .map((key): string => {
- if (!perms[key]) return "";
+ .map(key => {
+ if (!perms[key as keyof Permissions]) return "";
const cliFlag = key.replace(
/\.?([A-Z])/g,