summaryrefslogtreecommitdiff
path: root/tools/unit_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/unit_tests.py')
-rwxr-xr-xtools/unit_tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/unit_tests.py b/tools/unit_tests.py
index 14f1d18b7..78b4d77c1 100755
--- a/tools/unit_tests.py
+++ b/tools/unit_tests.py
@@ -4,6 +4,7 @@ import sys
import subprocess
import re
+
def run_unit_test2(cmd):
process = subprocess.Popen(
cmd,
@@ -26,6 +27,7 @@ def run_unit_test2(cmd):
if errcode != 0:
sys.exit(errcode)
+
def run_unit_test(deno_exe, permStr, flags=[]):
cmd = [deno_exe, "--reload", "js/unit_tests.ts", permStr] + flags
run_unit_test2(cmd)
@@ -48,9 +50,7 @@ def unit_tests(deno_exe):
# These are not strictly unit tests for Deno, but for ts_library_builder.
# They run under Node, but use the same //js/testing/ library.
run_unit_test2([
- "node",
- "./node_modules/.bin/ts-node",
- "--project",
+ "node", "./node_modules/.bin/ts-node", "--project",
"tools/ts_library_builder/tsconfig.json",
"tools/ts_library_builder/test.ts"
])