photoprism/pkg/capture/time_test.go
Michael Mayer 3e4e72b00f Backend: Move capture package to pkg/
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-01-12 14:25:58 +01:00

16 lines
291 B
Go

package capture
import (
"fmt"
"testing"
"time"
"github.com/stretchr/testify/assert"
)
func TestTime(t *testing.T) {
start := time.Now()
time.Sleep(1 * time.Millisecond)
result := Time(start, fmt.Sprintf("%s", "Successful test"))
assert.Contains(t, result, "Successful test [")
}