Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions insta/src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -557,11 +557,7 @@ impl<'a> SnapshotAssertionContext<'a> {
if should_print {
elog!(
"{} {}",
if unseen {
style("created previously unseen snapshot").green()
} else {
style("updated snapshot").green()
},
style("updated snapshot").green(),
style(snapshot_file.display()).cyan().underlined(),
);
}
Expand Down
9 changes: 4 additions & 5 deletions insta/src/snapshot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1430,11 +1430,10 @@ fn test_empty_lines() {
multiline content starting on second line

final line
"#, @r###"

multiline content starting on second line
"#, @r"

final line
multiline content starting on second line

"###);
final line
");
}
2 changes: 2 additions & 0 deletions insta/tests/test_inline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,8 @@ fn test_inline_test_in_loop() {
#[test]
fn test_inline_snapshot_whitespace() {
assert_snapshot!("\n\nfoo\n\n bar\n\n", @r"


foo

bar
Expand Down