mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 12:37:20 +00:00
test: add comprehensive tests for AppReduced utility and path normalization
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -88,7 +88,8 @@ export class AppReduced {
|
||||
|
||||
get options() {
|
||||
return {
|
||||
logo_return_path: "/",
|
||||
admin_basepath: '',
|
||||
logo_return_path: '/',
|
||||
...this._options,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user