mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-24 09:20:31 +00:00
07c8765b72
Co-authored-by: oauth <woodpecker-bot@obermui.de> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: 6543 <6543@obermui.de>
14 lines
269 B
Go
14 lines
269 B
Go
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)
|
|
}
|