Skip to content

Commit 94c9209

Browse files
committed
test(vendor): snapshot what are vendored
1 parent f3603c9 commit 94c9209

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

tests/testsuite/vendor.rs

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,13 +1096,23 @@ fn ignore_files() {
10961096

10971097
p.cargo("vendor --respect-source-config").run();
10981098
let csum = p.read_file("vendor/url/.cargo-checksum.json");
1099-
assert!(csum.contains(".cargo_vcs_info.json"));
1100-
assert!(csum.contains("Cargo.toml.orig"));
1101-
assert!(csum.contains("foo.orig"));
1102-
assert!(csum.contains("foo.rej"));
1103-
assert!(!csum.contains(".gitignore"));
1104-
assert!(!csum.contains(".gitattributes"));
1105-
assert!(!csum.contains(".cargo-ok"));
1099+
assert_e2e().eq(
1100+
csum,
1101+
str![[r#"
1102+
{
1103+
"files": {
1104+
".cargo_vcs_info.json": "[..]",
1105+
"Cargo.toml": "[..]",
1106+
"Cargo.toml.orig": "[..]",
1107+
"foo.orig": "[..]",
1108+
"foo.rej": "[..]",
1109+
"src/lib.rs": "[..]"
1110+
},
1111+
"package": "[..]"
1112+
}
1113+
"#]]
1114+
.is_json(),
1115+
);
11061116
}
11071117

11081118
#[cargo_test]

0 commit comments

Comments
 (0)