Skip to content

Commit 201ddd2

Browse files
kt3kry
authored andcommitted
fmt_test: resolve old absolute path issue (#2562)
1 parent 642eaf9 commit 201ddd2

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

tools/fmt_test.py

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,12 @@ def test_fmt(self):
2323
# fetch it instead through tools/http_server.py.
2424
deno_dir = d
2525

26-
# TODO(kt3k) Below can be run([deno_exe, "fmt", dst], ...)
27-
# once the following issue is addressed:
28-
# https://github.com/denoland/deno_std/issues/330
29-
result = run_output([
30-
os.path.join(root_path, self.deno_exe), "fmt",
31-
"badly_formatted.js"
32-
],
33-
cwd=d,
34-
merge_env={"DENO_DIR": deno_dir},
35-
exit_on_fail=True,
36-
quiet=True)
26+
result = run_output(
27+
[os.path.join(root_path, self.deno_exe), "fmt", dst],
28+
cwd=d,
29+
merge_env={"DENO_DIR": deno_dir},
30+
exit_on_fail=True,
31+
quiet=True)
3732
self.assertEqual(result.code, 0)
3833
with open(fixed_filename) as f:
3934
expected = f.read()

0 commit comments

Comments
 (0)