test: Use insta, closes #57

Use insta for UI tests, adds snapshots of UI layout
This commit is contained in:
Jack Wills
2025-04-16 11:16:45 +00:00
parent 8f959c5408
commit 9362d7b481
126 changed files with 2059 additions and 1773 deletions
+2 -4
View File
@@ -232,11 +232,9 @@ mod tests {
#[test]
/// Test various timezones get parsed correctly
fn test_config_parse_timezone() {
assert!(super::Config::parse_timezone(None).is_none());
// Timezone with no offset just return None
for i in ["Europe/London", "Africa/Accra"] {
assert!(super::Config::parse_timezone(Some(i.to_owned())).is_none());
for i in [None, Some("UTC".to_owned())] {
assert!(super::Config::parse_timezone(i).is_none());
}
let expected = Some(TimeZone::get("Asia/Tokyo").unwrap());