Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Commit 4d7c30b

Browse files
committed
#2 Fixing tests
Signed-off-by: Pascal Glaser <[email protected]>
1 parent 6ef568b commit 4d7c30b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const (
5151
window.onload = function() {
5252
// Begin Swagger UI call region
5353
const ui = SwaggerUIBundle({
54-
spec: {"components":{},"info":{"title":"Test","version":"0.0.0"},"openapi":"3.0.0","paths":{}},
54+
spec: {"info":{"title":"Test","version":"0.0.0"},"openapi":"3.0.0","paths":{}},
5555
dom_id: '#swagger-ui',
5656
deepLinking: true,
5757
presets: [
@@ -83,7 +83,7 @@ func (suite *UITestSuite) TestNewOptions() {
8383
}
8484
opts := NewUIOptions(spec)
8585
suite.NotNil(opts)
86-
suite.Equal(`{"components":{},"info":{"title":"Test","version":"0.0.0"},"openapi":"3.0.0","paths":{}}`, opts.Spec)
86+
suite.Equal(`{"info":{"title":"Test","version":"0.0.0"},"openapi":"3.0.0","paths":{}}`, opts.Spec)
8787
suite.NotEmpty(opts.Favicon16)
8888
suite.NotEmpty(opts.Favicon32)
8989
suite.NotEmpty(opts.BundleURL)

0 commit comments

Comments
 (0)