KEYCLOAK-14412 Fixed compiler error in JavascriptAdapterTests

This commit is contained in:
Thomas Darimont 2020-10-21 01:16:15 +02:00 committed by Bruno Oliveira da Silva
parent b926cd20f1
commit d2060913be
2 changed files with 3 additions and 3 deletions

View file

@ -192,7 +192,7 @@
kc.enableLogging = false;
}
if (typeof initOptions.scope === "string") {
if (typeof initOptions.scope === 'string') {
kc.scope = initOptions.scope;
}
}

View file

@ -463,7 +463,7 @@ public class JavascriptAdapterTest extends AbstractJavascriptTest {
JSObjectBuilder initOptions = defaultArguments()
.loginRequiredOnLoad()
// phone is optional client scope
.add("scope", "profile email phone");
.add("scope", "openid profile email phone");
try {
testExecutor.init(initOptions);
@ -476,7 +476,7 @@ public class JavascriptAdapterTest extends AbstractJavascriptTest {
}
testExecutor.loginForm(testUser, this::assertOnTestAppUrl)
.init(initOptions, this::assertSuccessfullyLoggedIn)
.init(initOptions, this::assertAdapterIsLoggedIn)
.executeScript("return window.keycloak.tokenParsed.scope", assertOutputContains("phone"));
}