22 lines
399 B
Go
22 lines
399 B
Go
package router_test
|
|
|
|
import (
|
|
"net/http"
|
|
"net/http/httptest"
|
|
"testing"
|
|
|
|
"github.com/iliadenisov/galaxy/internal/router"
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestGetStatus(t *testing.T) {
|
|
r := router.SetupRouter()
|
|
|
|
w := httptest.NewRecorder()
|
|
req, _ := http.NewRequest("GET", "/api/v1/status", nil)
|
|
r.ServeHTTP(w, req)
|
|
|
|
assert.Equal(t, http.StatusNotImplemented, w.Code, w.Body)
|
|
|
|
}
|