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, ...kcContextCommonMock,
"pageId": "update-email.ftl", "pageId": "update-email.ftl",
"profile": { "profile": {
attributes, "attributes": attributes.filter(attribute => attribute.name === "email"),
attributesByName "attributesByName": Object.fromEntries(
attributes.filter(attribute => attribute.name === "email").map(attribute => [attribute.name, attribute])
)
} }
}), }),
id<KcContext.SelectAuthenticator>({ id<KcContext.SelectAuthenticator>({