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