Make getKcContext mock return type less narrow
This commit is contained in:
@ -64,7 +64,7 @@ import { Reflect } from "tsafe/Reflect";
|
||||
pageId: "login.ftl"
|
||||
});
|
||||
|
||||
type Expected = Extract<KcContext, { pageId: "login.ftl" }>;
|
||||
type Expected = KcContext;
|
||||
|
||||
assert<Equals<typeof got, Expected>>();
|
||||
}
|
||||
@ -74,7 +74,7 @@ import { Reflect } from "tsafe/Reflect";
|
||||
pageId: "register.ftl"
|
||||
});
|
||||
|
||||
type Expected = Extract<KcContext, { pageId: "register.ftl" }>;
|
||||
type Expected = KcContext;
|
||||
|
||||
assert<Equals<typeof got, Expected>>();
|
||||
}
|
||||
@ -84,7 +84,7 @@ import { Reflect } from "tsafe/Reflect";
|
||||
pageId: "my-custom-page.ftl"
|
||||
});
|
||||
|
||||
type Expected = Extract<KcContext, { pageId: "my-custom-page.ftl" }>;
|
||||
type Expected = KcContext;
|
||||
|
||||
assert<Equals<typeof got, Expected>>();
|
||||
}
|
||||
@ -181,7 +181,7 @@ import { Reflect } from "tsafe/Reflect";
|
||||
pageId: "login.ftl"
|
||||
});
|
||||
|
||||
type Expected = Extract<KcContext, { pageId: "login.ftl" }>;
|
||||
type Expected = KcContext;
|
||||
|
||||
assert<Equals<typeof got, Expected>>();
|
||||
}
|
||||
@ -191,7 +191,7 @@ import { Reflect } from "tsafe/Reflect";
|
||||
pageId: "register.ftl"
|
||||
});
|
||||
|
||||
type Expected = Extract<KcContext, { pageId: "register.ftl" }>;
|
||||
type Expected = KcContext;
|
||||
|
||||
assert<Equals<typeof got, Expected>>();
|
||||
}
|
||||
|
Reference in New Issue
Block a user