mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-05 08:06:30 +00:00
15 lines
269 B
Go
15 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)
|
||
|
}
|