Test: Add test for api/moments_time
This commit is contained in:
parent
8d95900435
commit
b6967671c7
1 changed files with 19 additions and 0 deletions
19
internal/api/moments_time_test.go
Normal file
19
internal/api/moments_time_test.go
Normal file
|
@ -0,0 +1,19 @@
|
|||
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)
|
||||
})
|
||||
}
|
Loading…
Reference in a new issue