bpms_site/.svn/pristine/90/90dcaa70c038f92734674ec834fb26ef86d3c738.svn-base
2025-11-02 16:38:49 +03:30

25 lines
954 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
const _apppaths = require("./app-paths");
describe("normalizeRscPath", ()=>{
describe("enabled", ()=>{
it("should normalize url with .rsc", ()=>{
expect((0, _apppaths.normalizeRscPath)("/test.rsc", true)).toBe("/test");
});
it("should normalize url with .rsc and searchparams", ()=>{
expect((0, _apppaths.normalizeRscPath)("/test.rsc?abc=def", true)).toBe("/test?abc=def");
});
});
describe("disabled", ()=>{
it("should normalize url with .rsc", ()=>{
expect((0, _apppaths.normalizeRscPath)("/test.rsc", false)).toBe("/test.rsc");
});
it("should normalize url with .rsc and searchparams", ()=>{
expect((0, _apppaths.normalizeRscPath)("/test.rsc?abc=def", false)).toBe("/test.rsc?abc=def");
});
});
});
//# sourceMappingURL=app-paths.test.js.map