chore: migrate insta snapshots to RON

This commit is contained in:
ThetaDev 2022-09-24 18:50:52 +02:00
parent bf97f31173
commit 45707c4d01
23 changed files with 17262 additions and 11092 deletions

View file

@ -598,7 +598,7 @@ mod tests {
map_res.warnings
);
let is_desktop = name == "desktop" || name == "desktopmusic";
insta::assert_yaml_snapshot!(format!("map_player_data_{}", name), map_res.c, {
insta::assert_ron_snapshot!(format!("map_player_data_{}", name), map_res.c, {
".details.publish_date" => insta::dynamic_redaction(move |value, _path| {
if is_desktop {
assert!(value.as_str().unwrap().starts_with("2019-05-30T00:00:00"));