mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 04:27:21 +00:00
fixing AppReduced.spec.ts
This commit is contained in:
@@ -133,6 +133,7 @@ describe("AppReduced", () => {
|
||||
const options = appReduced.options;
|
||||
|
||||
expect(options).toEqual({
|
||||
basepath: "/",
|
||||
logo_return_path: "/custom-home",
|
||||
admin_basepath: "/custom-admin",
|
||||
});
|
||||
@@ -187,7 +188,7 @@ describe("AppReduced", () => {
|
||||
appReduced = new AppReduced(mockAppJson, options);
|
||||
const result = appReduced.getAbsolutePath("entity/");
|
||||
|
||||
expect(result).toBe("~/admin/entity/");
|
||||
expect(result).toBe("~/admin/entity");
|
||||
});
|
||||
|
||||
it("should remove trailing slashes from non-entity paths", () => {
|
||||
|
||||
Reference in New Issue
Block a user