More sensible mock date for UpdateEmail

This commit is contained in:
Joseph Garrone
2024-05-11 22:15:28 +02:00
parent e9f7f9d091
commit ec421e62ff

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>({