|
package data
|
|
|
|
import "testing"
|
|
|
|
func TestDefaultIgnoredAPIsIncludeSwagger(t *testing.T) {
|
|
for _, api := range defaultIgnoredAPIs() {
|
|
if api.Method == "GET" && api.Path == "/swagger/*any" {
|
|
return
|
|
}
|
|
}
|
|
t.Fatal("default ignored APIs do not include the Swagger handler")
|
|
}
|