Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
max-sixty committed Sep 2, 2024
1 parent bb68cda commit 7d8220b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions insta/src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -687,10 +687,10 @@ pub fn assert_snapshot(
// particular, this would otherwise create lots of unneeded files
// for inline snapshots
//
// Note that there's a check down the stack on whether the files
// match for file snapshots; probably we should combine that check
// with `matches_fully` and then use a single check for whether we
// force update snapshots.
// Note that there's a check down the stack on whether the file
// contents match exactly for file snapshots; probably we should
// combine that check with `matches_fully` and then use a single
// check for whether we force update snapshots.
let matches_fully = &ctx
.old_snapshot
.as_ref()
Expand Down
8 changes: 4 additions & 4 deletions insta/tests/test_inline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,11 @@ fn test_yaml_inline() {
id: 42,
username: "peter-pan".into(),
email: "[email protected]".into()
}, @r#"
}, @r###"
id: 42
username: peter-pan
email: [email protected]
"#);
"###);
}

#[cfg(all(feature = "redactions", feature = "yaml"))]
Expand All @@ -213,11 +213,11 @@ fn test_yaml_inline_redacted() {
email: "[email protected]".into()
}, {
".id" => "[user-id]"
}, @r#"
}, @r###"
id: "[user-id]"
username: peter-pan
email: [email protected]
"#);
"###);
}

#[test]
Expand Down

0 comments on commit 7d8220b

Please sign in to comment.