test: add comprehensive tests for AppReduced utility and path normalization

This commit is contained in:
cameronapak
2025-07-22 08:52:32 -05:00
parent 75c29ae5e2
commit 12ef72d595
3 changed files with 236 additions and 2 deletions

View File

@@ -8,7 +8,9 @@ import { Message } from "ui/components/display/Message";
import { useNavigate } from "ui/lib/routes";
import type { AdminBkndWindowContext } from "modules/server/AdminController";
export type BkndAdminOptions = Omit<AdminBkndWindowContext, "user" | "logout_route">
export type BkndAdminOptions = Omit<AdminBkndWindowContext, "user" | "logout_route" | "admin_basepath"> & {
admin_basepath?: string;
}
type BkndContext = {
version: number;
schema: ModuleSchemas;

View File

@@ -88,7 +88,8 @@ export class AppReduced {
get options() {
return {
logo_return_path: "/",
admin_basepath: '',
logo_return_path: '/',
...this._options,
};
}