diff options
author | Leo Kettmeir <crowlkats@toaxl.com> | 2023-01-16 01:30:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-16 00:30:52 +0000 |
commit | df4d0c55c09a1dc6f227b0bce399202160693445 (patch) | |
tree | 5bd4f9fc816d019639851a8bcc0cb611e4cde0e6 /cli/tests/integration/fmt_tests.rs | |
parent | 7683ba5e907c2dca21f1cfffbd33ae50f8c975a7 (diff) |
fix(cli/fmt): show filepath for InvalidData error (#17361)
Diffstat (limited to 'cli/tests/integration/fmt_tests.rs')
-rw-r--r-- | cli/tests/integration/fmt_tests.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/tests/integration/fmt_tests.rs b/cli/tests/integration/fmt_tests.rs index 144c2b56c..d230f96c0 100644 --- a/cli/tests/integration/fmt_tests.rs +++ b/cli/tests/integration/fmt_tests.rs @@ -189,6 +189,12 @@ itest!(fmt_check_parse_error { exit_code: 1, }); +itest!(fmt_check_invalid_data { + args: "fmt --check fmt/invalid_data.json", + output: "fmt/invalid_data.out", + exit_code: 1, +}); + itest!(fmt_stdin { args: "fmt -", input: Some("const a = 1\n"), |