bpms_site/.svn/pristine/0c/0c8f35a8764c7fcab9d6d1084bdc1eed86aa4326.svn-base
2025-11-02 16:38:49 +03:30

21 lines
819 B
Plaintext

import { normalizeRscPath } from "./app-paths";
describe("normalizeRscPath", ()=>{
describe("enabled", ()=>{
it("should normalize url with .rsc", ()=>{
expect(normalizeRscPath("/test.rsc", true)).toBe("/test");
});
it("should normalize url with .rsc and searchparams", ()=>{
expect(normalizeRscPath("/test.rsc?abc=def", true)).toBe("/test?abc=def");
});
});
describe("disabled", ()=>{
it("should normalize url with .rsc", ()=>{
expect(normalizeRscPath("/test.rsc", false)).toBe("/test.rsc");
});
it("should normalize url with .rsc and searchparams", ()=>{
expect(normalizeRscPath("/test.rsc?abc=def", false)).toBe("/test.rsc?abc=def");
});
});
});
//# sourceMappingURL=app-paths.test.js.map