1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-01-10 00:43:36 +02:00
pocketbase/apis/health_test.go

26 lines
436 B
Go
Raw Normal View History

2022-12-11 17:27:46 +02:00
package apis_test
import (
"github.com/pocketbase/pocketbase/tests"
"net/http"
"testing"
)
func TestHealthAPI(t *testing.T) {
scenarios := []tests.ApiScenario{
{
Name: "health status returns 200",
Method: http.MethodGet,
Url: "/api/health",
ExpectedStatus: 200,
ExpectedContent: []string{
`"code":200`,
},
},
}
for _, scenario := range scenarios {
scenario.Test(t)
}
}