Skip to content

Commit 16448d4

Browse files
committed
doc(test): Document 'with_json' replacement
1 parent bb5488c commit 16448d4

File tree

1 file changed

+3
-1
lines changed
  • crates/cargo-test-support/src

1 file changed

+3
-1
lines changed

crates/cargo-test-support/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,9 @@ impl Execs {
876876
/// - The order of arrays is ignored.
877877
/// - Strings support patterns described in [`compare`].
878878
/// - Use `"{...}"` to match any object.
879-
#[deprecated(note = "replaced with `Execs::with_stdout_data(expected.json_lines())`")]
879+
#[deprecated(
880+
note = "replaced with `Execs::with_stdout_data(expected.is_json().against_jsonlines())`"
881+
)]
880882
pub fn with_json(&mut self, expected: &str) -> &mut Self {
881883
self.expect_json = Some(expected.to_string());
882884
self

0 commit comments

Comments
 (0)