test: remove duplicate absolute outside-session-path guard case

This commit is contained in:
Peter Steinberger 2026-02-16 08:37:15 +00:00
parent 3daaa19426
commit 4f05d045b9
1 changed files with 0 additions and 4 deletions

View File

@ -93,10 +93,6 @@ describe("session path safety", () => {
expect(() =>
resolveSessionFilePath("sess-1", { sessionFile: "../../etc/passwd" }, { sessionsDir }),
).toThrow(/within sessions directory/);
expect(() =>
resolveSessionFilePath("sess-1", { sessionFile: "/etc/passwd" }, { sessionsDir }),
).toThrow(/within sessions directory/);
});
it("accepts sessionFile candidates within the sessions dir", () => {