mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-21 21:40:42 +00:00
Add some tests (#3030)
This commit is contained in:
14
cmd/server/swagger_test.go
Normal file
14
cmd/server/swagger_test.go
Normal 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)
|
||||
}
|
Reference in New Issue
Block a user