Skip to content

Commit 6515541

Browse files
committed
fix test
1 parent 1bd025e commit 6515541

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

swagger_test.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,7 @@ func TestUIConfigOptions(t *testing.T) {
388388
PersistAuthorization: false,
389389
Layout: StandaloneLayout,
390390
DefaultModelsExpandDepth: ShowModel,
391+
ShowExtensions: false,
391392
},
392393
exp: `window.onload = function() {
393394
@@ -406,7 +407,8 @@ func TestUIConfigOptions(t *testing.T) {
406407
SwaggerUIBundle.plugins.DownloadUrl
407408
],
408409
layout: "StandaloneLayout",
409-
defaultModelsExpandDepth: 1
410+
defaultModelsExpandDepth: 1 ,
411+
showExtensions: false
410412
})
411413
412414
window.ui = ui
@@ -439,6 +441,7 @@ func TestUIConfigOptions(t *testing.T) {
439441
"defaultModelRendering": `"model"`,
440442
},
441443
DefaultModelsExpandDepth: HideModel,
444+
ShowExtensions: true,
442445
},
443446
exp: `window.onload = function() {
444447
const SomePlugin = (system) => ({
@@ -466,7 +469,8 @@ func TestUIConfigOptions(t *testing.T) {
466469
onComplete: () => { window.ui.setBasePath('v3'); },
467470
showExtensions: true,
468471
layout: "StandaloneLayout",
469-
defaultModelsExpandDepth: -1
472+
defaultModelsExpandDepth: -1 ,
473+
showExtensions: true
470474
})
471475
472476
window.ui = ui

0 commit comments

Comments
 (0)