Create a storybook friendly getKcContext

This commit is contained in:
garronej
2023-04-16 02:09:26 +02:00
parent fd49c2fd23
commit d1c7491704
10 changed files with 543 additions and 214 deletions

View File

@ -213,7 +213,7 @@ describe("getKcContext", () => {
assert(same(deepClone(kcContext), deepClone(kcContextMocks.find(({ pageId: pageId_i }) => pageId_i === pageId)!)));
});
it("returns the proper mock for login.ftl", () => {
it("returns undefined when no mock is specified", () => {
const { kcContext } = getKcContext();
assert<Equals<typeof kcContext, KcContext | undefined>>();