diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2019-04-10 02:32:48 +0900 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-04-09 13:32:48 -0400 |
commit | 5a3f3a744559ef60a2367aaf0ded704713909112 (patch) | |
tree | 1281d9599364fa394a94a255714a12eb2d7fc31b /tools/fmt_test.py | |
parent | d2579f45641b437974829c87d58c2a362ef66919 (diff) |
upgrade deno_std & add workaround prettier issue (#2087)
Diffstat (limited to 'tools/fmt_test.py')
-rwxr-xr-x | tools/fmt_test.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/fmt_test.py b/tools/fmt_test.py index 85b475015..042dd8a64 100755 --- a/tools/fmt_test.py +++ b/tools/fmt_test.py @@ -19,7 +19,12 @@ def fmt_test(deno_exe): # Set DENO_DIR to //js/ so we don't have to rely on an intenet # connection to download https://deno.land/std/prettier/main.ts deno_dir = os.path.join(root_path, "js") - run([deno_exe, "fmt", dst], merge_env={"DENO_DIR": deno_dir}) + # TODO(kt3k) The below line should be run([deno_exe, "fmt", dst], ...) + # It should be updated when the below issue is addressed + # https://github.com/denoland/deno_std/issues/330 + run([os.path.join(root_path, deno_exe), "fmt", "badly_formatted.js"], + cwd=d, + merge_env={"DENO_DIR": deno_dir}) with open(fixed_filename) as f: expected = f.read() with open(dst) as f: |