summaryrefslogtreecommitdiff
path: root/cli/js/unit_test_runner.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js/unit_test_runner.ts')
-rwxr-xr-xcli/js/unit_test_runner.ts20
1 files changed, 9 insertions, 11 deletions
diff --git a/cli/js/unit_test_runner.ts b/cli/js/unit_test_runner.ts
index ae255c385..740408e9b 100755
--- a/cli/js/unit_test_runner.ts
+++ b/cli/js/unit_test_runner.ts
@@ -15,17 +15,15 @@ interface TestResult {
function permsToCliFlags(perms: Permissions): string[] {
return Object.keys(perms)
- .map(
- (key): string => {
- if (!perms[key]) return "";
-
- const cliFlag = key.replace(
- /\.?([A-Z])/g,
- (x, y): string => `-${y.toLowerCase()}`
- );
- return `--allow-${cliFlag}`;
- }
- )
+ .map((key): string => {
+ if (!perms[key]) return "";
+
+ const cliFlag = key.replace(
+ /\.?([A-Z])/g,
+ (x, y): string => `-${y.toLowerCase()}`
+ );
+ return `--allow-${cliFlag}`;
+ })
.filter((e): boolean => e.length > 0);
}