mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-08 00:22:14 +01:00
19 lines
344 B
Go
19 lines
344 B
Go
package api
|
|
|
|
import (
|
|
"net/http"
|
|
"net/http/httptest"
|
|
"testing"
|
|
|
|
"github.com/labstack/echo"
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestPing(t *testing.T) {
|
|
req := httptest.NewRequest(http.MethodGet, "/ping", nil)
|
|
rec := httptest.NewRecorder()
|
|
e := echo.New()
|
|
_ = e.NewContext(req, rec)
|
|
assert.Equal(t, http.StatusOK, rec.Code)
|
|
}
|