5d59b50912
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
19 lines
316 B
Go
19 lines
316 B
Go
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, _ := NewApiTest()
|
|
|
|
GetGeo(router)
|
|
|
|
result := PerformRequest(app, "GET", "/api/v1/geo")
|
|
assert.Equal(t, http.StatusOK, result.Code)
|
|
})
|
|
}
|