AnthoLume/api/utils_test.go
Evan Reichard cdec621043
All checks were successful
continuous-integration/drone/push Build is passing
[add] better error handling, [add] font selector, [add] tailwind generation
2023-10-25 19:52:01 -04:00

13 lines
197 B
Go

package api
import "testing"
func TestNiceSeconds(t *testing.T) {
want := "22d 7h 39m 31s"
nice := niceSeconds(1928371)
if nice != want {
t.Fatalf(`Expected: %v, Got: %v`, want, nice)
}
}