summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2019-06-22 23:21:39 +0900
committerRyan Dahl <ry@tinyclouds.org>2019-06-22 07:21:39 -0700
commit201ddd29a7908d457ed43b030476707d32848868 (patch)
tree955905211e9ac4c47320179292d0dba4a98ccbaf
parent642eaf97c67c6070935a2977014c743ba59deff8 (diff)
fmt_test: resolve old absolute path issue (#2562)
-rwxr-xr-xtools/fmt_test.py17
1 files changed, 6 insertions, 11 deletions
diff --git a/tools/fmt_test.py b/tools/fmt_test.py
index 99abb2c9e..ca7cc7c20 100755
--- a/tools/fmt_test.py
+++ b/tools/fmt_test.py
@@ -23,17 +23,12 @@ class TestFmt(DenoTestCase):
# fetch it instead through tools/http_server.py.
deno_dir = d
- # TODO(kt3k) Below can be run([deno_exe, "fmt", dst], ...)
- # once the following issue is addressed:
- # https://github.com/denoland/deno_std/issues/330
- result = run_output([
- os.path.join(root_path, self.deno_exe), "fmt",
- "badly_formatted.js"
- ],
- cwd=d,
- merge_env={"DENO_DIR": deno_dir},
- exit_on_fail=True,
- quiet=True)
+ result = run_output(
+ [os.path.join(root_path, self.deno_exe), "fmt", dst],
+ cwd=d,
+ merge_env={"DENO_DIR": deno_dir},
+ exit_on_fail=True,
+ quiet=True)
self.assertEqual(result.code, 0)
with open(fixed_filename) as f:
expected = f.read()