chore(deps): update rust crate insta to v1.38.0 (#10701)

This commit is contained in:
renovate[bot] 2024-04-01 15:44:30 +00:00 committed by GitHub
parent 20d69ea504
commit 4047d456b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 19 deletions

View file

@ -70,7 +70,7 @@ pub(crate) fn version() -> VersionInfo {
#[cfg(test)]
mod tests {
use insta::{assert_display_snapshot, assert_json_snapshot};
use insta::{assert_json_snapshot, assert_snapshot};
use super::{CommitInfo, VersionInfo};
@ -80,7 +80,7 @@ mod tests {
version: "0.0.0".to_string(),
commit_info: None,
};
assert_display_snapshot!(version);
assert_snapshot!(version);
}
#[test]
@ -95,7 +95,7 @@ mod tests {
commits_since_last_tag: 0,
}),
};
assert_display_snapshot!(version);
assert_snapshot!(version);
}
#[test]
@ -110,7 +110,7 @@ mod tests {
commits_since_last_tag: 24,
}),
};
assert_display_snapshot!(version);
assert_snapshot!(version);
}
#[test]

View file

@ -132,9 +132,7 @@ mod tests {
($value: ident) => {{
// The debug representation for the backslash are two backslashes (escaping)
let $value = std::format!("{:#?}", $value).replace("\\\\", "/");
// `insta::assert_snapshot` uses the debug representation of the string, which would
// be a single line containing `\n`
insta::assert_display_snapshot!($value);
insta::assert_snapshot!($value);
}};
}