Skip to content

Commit 99fdebe

Browse files
authored
insta: Update snapshots (#11345)
This is the result of running `cargo insta test --all --force-update-snapshots --unreferenced delete`. It updated a couple of snapshots to use less verbose escaping.
1 parent 2ffe240 commit 99fdebe

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

crates/crates_io_database/tests/semver_ord.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ async fn test_jsonb_output() {
2626
.unwrap_or_default()
2727
};
2828

29-
insta::assert_snapshot!(check("0.0.0").await, @r#"[0, 0, 0, {}]"#);
29+
insta::assert_snapshot!(check("0.0.0").await, @"[0, 0, 0, {}]");
3030
insta::assert_snapshot!(check("1.0.0-alpha.1").await, @r#"[1, 0, 0, [true, "alpha", false, 1, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, ""]]"#);
3131

3232
// see https://crates.io/crates/cursed-trying-to-break-cargo/1.0.0-0.HDTV-BluRay.1020p.YTSUB.L33TRip.mkv – thanks @Gankra!

crates/crates_io_trustpub/src/github/claims.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ mod tests {
191191
}))?;
192192

193193
let error = GitHubClaims::decode(&jwt, AUDIENCE, &DECODING_KEY).unwrap_err();
194-
assert_compact_debug_snapshot!(error, @r"Error(InvalidAudience)");
194+
assert_compact_debug_snapshot!(error, @"Error(InvalidAudience)");
195195

196196
Ok(())
197197
}

src/tests/krate/publish/dependencies.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ async fn new_krate_with_patch() {
313313

314314
let response = token.publish_crate(crate_to_publish).await;
315315
assert_eq!(response.status(), StatusCode::BAD_REQUEST);
316-
assert_snapshot!(response.text(), @r###"{"errors":[{"detail":"failed to parse `Cargo.toml` manifest file\n\ncrates cannot be published with `[patch]` tables"}]}"###);
316+
assert_snapshot!(response.text(), @r#"{"errors":[{"detail":"failed to parse `Cargo.toml` manifest file\n\ncrates cannot be published with `[patch]` tables"}]}"#);
317317
assert_that!(app.stored_files().await, empty());
318318
}
319319

0 commit comments

Comments
 (0)