From 5a3f3a744559ef60a2367aaf0ded704713909112 Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Wed, 10 Apr 2019 02:32:48 +0900 Subject: [PATCH] upgrade deno_std & add workaround prettier issue (#2087) --- js/deps/https/deno.land/std | 2 +- tools/fmt_test.py | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/js/deps/https/deno.land/std b/js/deps/https/deno.land/std index 395392912d..2c119627dc 160000 --- a/js/deps/https/deno.land/std +++ b/js/deps/https/deno.land/std @@ -1 +1 @@ -Subproject commit 395392912d69fe320d74c1f95a27be8e4adc0fa6 +Subproject commit 2c119627dc8fa96df9b45102e019115becb94558 diff --git a/tools/fmt_test.py b/tools/fmt_test.py index 85b475015e..042dd8a64c 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: