alice-lg/pkg/http/timeconv_test.go

13 lines
192 B
Go
Raw Permalink Normal View History

2021-10-27 17:54:51 +00:00
package http
import (
"testing"
"time"
)
func TestDurationMs(t *testing.T) {
if DurationMs(time.Second) != 1000 {
t.Error("duration ms should return the duration in milliseconds")
}
}