woodpecker/cmd/server/openapi_test.go

15 lines
269 B
Go
Raw Normal View History

package main
import (
"testing"
"github.com/stretchr/testify/assert"
"go.woodpecker-ci.org/woodpecker/v2/cmd/server/openapi"
)
func TestSetupOpenApiStaticConfig(t *testing.T) {
setupOpenAPIStaticConfig()
assert.Equal(t, "/api", openapi.SwaggerInfo.BasePath)
}