woodpecker/cmd/server/swagger_test.go

15 lines
263 B
Go
Raw Normal View History

2023-12-27 09:36:49 +00:00
package main
import (
"testing"
"github.com/stretchr/testify/assert"
"go.woodpecker-ci.org/woodpecker/v2/cmd/server/docs"
)
func TestSetupSwaggerStaticConfig(t *testing.T) {
setupSwaggerStaticConfig()
assert.Equal(t, "/api", docs.SwaggerInfo.BasePath)
}