mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-02 08:06:00 +00:00
test(AppReduced): remove redundant admin_base_path
This commit is contained in:
@@ -206,8 +206,7 @@ describe("AppReduced", () => {
|
|||||||
describe("withBasePath - double slash fix (admin_basepath with trailing slash)", () => {
|
describe("withBasePath - double slash fix (admin_basepath with trailing slash)", () => {
|
||||||
it("should not produce double slashes when admin_basepath has trailing slash", () => {
|
it("should not produce double slashes when admin_basepath has trailing slash", () => {
|
||||||
const options: BkndAdminProps["config"] = {
|
const options: BkndAdminProps["config"] = {
|
||||||
basepath: "/",
|
basepath: "/admin",
|
||||||
admin_basepath: "/admin/",
|
|
||||||
logo_return_path: "/",
|
logo_return_path: "/",
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -220,8 +219,7 @@ describe("AppReduced", () => {
|
|||||||
|
|
||||||
it("should work correctly when admin_basepath has no trailing slash", () => {
|
it("should work correctly when admin_basepath has no trailing slash", () => {
|
||||||
const options: BkndAdminProps["config"] = {
|
const options: BkndAdminProps["config"] = {
|
||||||
basepath: "/",
|
basepath: "/admin",
|
||||||
admin_basepath: "/admin",
|
|
||||||
logo_return_path: "/",
|
logo_return_path: "/",
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -233,8 +231,7 @@ describe("AppReduced", () => {
|
|||||||
|
|
||||||
it("should handle absolute paths with admin_basepath trailing slash", () => {
|
it("should handle absolute paths with admin_basepath trailing slash", () => {
|
||||||
const options: BkndAdminProps["config"] = {
|
const options: BkndAdminProps["config"] = {
|
||||||
basepath: "/",
|
basepath: "/admin",
|
||||||
admin_basepath: "/admin/",
|
|
||||||
logo_return_path: "/",
|
logo_return_path: "/",
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -247,8 +244,7 @@ describe("AppReduced", () => {
|
|||||||
|
|
||||||
it("should handle settings path with admin_basepath trailing slash", () => {
|
it("should handle settings path with admin_basepath trailing slash", () => {
|
||||||
const options: BkndAdminProps["config"] = {
|
const options: BkndAdminProps["config"] = {
|
||||||
basepath: "/",
|
basepath: "/admin",
|
||||||
admin_basepath: "/admin/",
|
|
||||||
logo_return_path: "/",
|
logo_return_path: "/",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user