2020-02-02 18:41:36 +01:00
|
|
|
package api
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
)
|
|
|
|
|
2021-09-18 15:32:39 +02:00
|
|
|
func TestSearchPhotosGeo(t *testing.T) {
|
|
|
|
t.Run("Success", func(t *testing.T) {
|
2020-06-25 14:54:04 +02:00
|
|
|
app, router, _ := NewApiTest()
|
2020-02-02 18:41:36 +01:00
|
|
|
|
2021-09-18 15:32:39 +02:00
|
|
|
SearchPhotosGeo(router)
|
2020-02-02 18:41:36 +01:00
|
|
|
|
|
|
|
result := PerformRequest(app, "GET", "/api/v1/geo")
|
|
|
|
assert.Equal(t, http.StatusOK, result.Code)
|
|
|
|
})
|
|
|
|
}
|