More sensible mock date for UpdateEmail

This commit is contained in:
Joseph Garrone 2024-05-11 22:15:28 +02:00
parent e00ab03c19
commit 6a487b11ce

View File

@ -473,8 +473,10 @@ export const kcContextMocks = [
...kcContextCommonMock,
"pageId": "update-email.ftl",
"profile": {
attributes,
attributesByName
"attributes": attributes.filter(attribute => attribute.name === "email"),
"attributesByName": Object.fromEntries(
attributes.filter(attribute => attribute.name === "email").map(attribute => [attribute.name, attribute])
)
}
}),
id<KcContext.SelectAuthenticator>({