Browse Source

test: add format uptime minutes test

main
fdai7381 2 years ago
committed by fdai7451
parent
commit
024d0f8906
  1. 5
      src/builtins/fetch.rs

5
src/builtins/fetch.rs

@ -65,4 +65,9 @@ mod tests {
fn test_format_uptime_seconds() {
assert_eq!(format_uptime(35), "0h 0m 35s");
}
#[test]
fn test_format_uptime_minutes() {
assert_eq!(format_uptime(135), "0h 2m 15s");
}
}
Loading…
Cancel
Save