Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --- to the end of snapshots #506

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
6 changes: 4 additions & 2 deletions cargo-insta/tests/functional/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ Hello, world!
assert_snapshot!(test_current_insta.diff("src/snapshots/test_force_update_current__force_update.snap"), @r#"
--- Original: src/snapshots/test_force_update_current__force_update.snap
+++ Updated: src/snapshots/test_force_update_current__force_update.snap
@@ -1,8 +1,6 @@
@@ -1,8 +1,7 @@
-
---
source: src/lib.rs
Expand All @@ -370,12 +370,13 @@ Hello, world!
Hello, world!
-
-
+---
"#);

assert_snapshot!(test_insta_1_40_0.diff("src/snapshots/test_force_update_1_40_0__force_update.snap"), @r#"
--- Original: src/snapshots/test_force_update_1_40_0__force_update.snap
+++ Updated: src/snapshots/test_force_update_1_40_0__force_update.snap
@@ -1,8 +1,6 @@
@@ -1,8 +1,7 @@
-
---
source: src/lib.rs
Expand All @@ -386,6 +387,7 @@ Hello, world!
Hello, world!
-
-
+---
"#);
}

Expand Down
1 change: 1 addition & 0 deletions cargo-insta/tests/functional/workspace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,7 @@ fn test_hello() {
snapshot_kind: text
---
Hello, world!
---
"#);
}

Expand Down
Loading
Loading