Skip to content

Commit

Permalink
Update SwaggerUiTests.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Dezzzu authored Jan 22, 2024
1 parent 8f027db commit c2d6c63
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Tests/Swagger.Net.Tests/SwaggerUi/SwaggerUiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ public void It_exposes_config_for_swagger_ui_outh2_settings()
"test-realm",
"Swagger UI",
" ",
true,
new Dictionary<string, string> { { "TestHeader", "TestValue" } });
});

Expand All @@ -151,6 +152,7 @@ public void It_exposes_config_for_swagger_ui_outh2_settings()
StringAssert.Contains("oAuth2Realm: 'test-realm'", content);
StringAssert.Contains("oAuth2AppName: 'Swagger UI'", content);
StringAssert.Contains("OAuth2ScopeSeparator: ' '", content);
StringAssert.Contains("usePkceWithAuthorizationCodeGrant: ('true' == 'true')", content);
StringAssert.Contains("oAuth2AdditionalQueryStringParams: JSON.parse('{\"TestHeader\":\"TestValue\"}')", content);
}

Expand Down Expand Up @@ -263,4 +265,4 @@ public void It_exposes_config_for_UImaxDisplayedTags()
StringAssert.Contains("maxDisplayedTags: 2", content);
}
}
}
}

0 comments on commit c2d6c63

Please sign in to comment.