photoprism/internal/api/moments_time_test.go
2020-02-02 19:40:05 +01:00

19 lines
350 B
Go

package api
import (
"net/http"
"testing"
"github.com/stretchr/testify/assert"
)
func TestGetMomentsTime(t *testing.T) {
t.Run("get geo", func(t *testing.T) {
app, router, conf := NewApiTest()
GetMomentsTime(router, conf)
result := PerformRequest(app, "GET", "/api/v1/moments/time")
assert.Equal(t, http.StatusOK, result.Code)
})
}