chore: cleanups and refactorings for cleaner code
This commit is contained in:
@@ -64,13 +64,6 @@ mod tests {
|
||||
assert_ne!(a.id, b.id);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn toast_levels() {
|
||||
let t = Toast::new(ToastLevel::Error, "oops".into());
|
||||
assert_eq!(t.level, ToastLevel::Error);
|
||||
assert!(!t.message.is_empty());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn fresh_toast_not_expired() {
|
||||
let t = Toast::new(ToastLevel::Info, "test".into());
|
||||
|
||||
Reference in New Issue
Block a user