test: Migrate to pretty jsonlines for bad_manifest_path tests

This commit is contained in:
Ed Page 2024-07-23 13:29:08 -05:00
parent 98c21a666d
commit 65577954ce

View File

@ -331,10 +331,14 @@ fn verify_project_dir_containing_cargo_toml() {
.with_status(1)
.with_stdout_data(
str![[r#"
{"invalid":"the manifest-path must be a path to a Cargo.toml file"}
[
{
"invalid": "the manifest-path must be a path to a Cargo.toml file"
}
]
"#]]
.is_jsonlines(),
.is_json()
.against_jsonlines(),
)
.run();
}
@ -351,10 +355,14 @@ fn verify_project_dir_plus_file() {
.with_status(1)
.with_stdout_data(
str![[r#"
{"invalid":"the manifest-path must be a path to a Cargo.toml file"}
[
{
"invalid": "the manifest-path must be a path to a Cargo.toml file"
}
]
"#]]
.is_jsonlines(),
.is_json()
.against_jsonlines(),
)
.run();
}
@ -371,10 +379,14 @@ fn verify_project_dir_plus_path() {
.with_status(1)
.with_stdout_data(
str![[r#"
{"invalid":"the manifest-path must be a path to a Cargo.toml file"}
[
{
"invalid": "the manifest-path must be a path to a Cargo.toml file"
}
]
"#]]
.is_jsonlines(),
.is_json()
.against_jsonlines(),
)
.run();
}
@ -387,10 +399,14 @@ fn verify_project_dir_to_nonexistent_cargo_toml() {
.with_status(1)
.with_stdout_data(
str![[r#"
{"invalid":"manifest path `foo/bar/baz/Cargo.toml` does not exist"}
[
{
"invalid": "manifest path `foo/bar/baz/Cargo.toml` does not exist"
}
]
"#]]
.is_jsonlines(),
.is_json()
.against_jsonlines(),
)
.run();
}