KEYCLOAK-14412 Fixed compiler error in JavascriptAdapterTests
This commit is contained in:
parent
b926cd20f1
commit
d2060913be
2 changed files with 3 additions and 3 deletions
|
@ -192,7 +192,7 @@
|
|||
kc.enableLogging = false;
|
||||
}
|
||||
|
||||
if (typeof initOptions.scope === "string") {
|
||||
if (typeof initOptions.scope === 'string') {
|
||||
kc.scope = initOptions.scope;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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"));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue