test: reduce wording coupling and prune redundant coverage

This commit is contained in:
morluto committed 2026-11-08 00:01:18 +08:00
1 parent 80427af8cc
commit 1596d6a275
165 files changed
+633 -597

No files matched your search

@@ -140,9 +140,7 @@ describe("HTML base href empty segments", () => {
it("keeps an above-root base escape when the reference also climbs", () => {
expect(resolve("../app.js", "../../")).toMatchObject({
resolution_status: "rejected",
limitations: [
"The resolved candidate escapes the canonical artifact root.",
],
limitations: [expect.stringMatching(/escapes.*artifact root/iu)],
});
});
});
@@ -160,9 +158,7 @@ describe("HTML base href path syntax", () => {
it("still confines a base href that escapes the artifact root", () => {
expect(resolve("app.js", "/a/../../secret/")).toMatchObject({
resolution_status: "rejected",
limitations: [
"The resolved candidate escapes the canonical artifact root.",
],
limitations: [expect.stringMatching(/escapes.*artifact root/iu)],
});
});
it("reports an external base href as external rather than malformed", () => {