Test: Add test for api/geo

This commit is contained in:
Theresa Gresch 2020-02-02 18:41:36 +01:00
parent 47ae1e2b65
commit c4f4d1e578

19
internal/api/geo_test.go Normal file
View file

@ -0,0 +1,19 @@
package api
import (
"net/http"
"testing"
"github.com/stretchr/testify/assert"
)
func TestGetGeo(t *testing.T) {
t.Run("get geo", func(t *testing.T) {
app, router, conf := NewApiTest()
GetGeo(router, conf)
result := PerformRequest(app, "GET", "/api/v1/geo")
assert.Equal(t, http.StatusOK, result.Code)
})
}