From c2d6c63a37ce0dcc92330dd2bab7c444a583b635 Mon Sep 17 00:00:00 2001 From: Daniil Naumov <44437513+Dezzzu@users.noreply.github.com> Date: Mon, 22 Jan 2024 20:54:37 +0400 Subject: [PATCH] Update SwaggerUiTests.cs --- Tests/Swagger.Net.Tests/SwaggerUi/SwaggerUiTests.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Tests/Swagger.Net.Tests/SwaggerUi/SwaggerUiTests.cs b/Tests/Swagger.Net.Tests/SwaggerUi/SwaggerUiTests.cs index 30e06cbe..50ed3954 100644 --- a/Tests/Swagger.Net.Tests/SwaggerUi/SwaggerUiTests.cs +++ b/Tests/Swagger.Net.Tests/SwaggerUi/SwaggerUiTests.cs @@ -140,6 +140,7 @@ public void It_exposes_config_for_swagger_ui_outh2_settings() "test-realm", "Swagger UI", " ", + true, new Dictionary { { "TestHeader", "TestValue" } }); }); @@ -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); } @@ -263,4 +265,4 @@ public void It_exposes_config_for_UImaxDisplayedTags() StringAssert.Contains("maxDisplayedTags: 2", content); } } -} \ No newline at end of file +}