Add some tests (#3030)

This commit is contained in:
qwerty287
2023-12-27 10:36:49 +01:00
committed by GitHub
parent 5cb0ae053a
commit e575ffe72d
9 changed files with 117 additions and 2 deletions

View File

@@ -0,0 +1,14 @@
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)
}