test: remove duplicate passthrough storePath guard case

This commit is contained in:
Peter Steinberger
2026-02-16 08:35:14 +00:00
parent 6a759c9191
commit 83a5f7ba8c

View File

@@ -12,7 +12,6 @@ import {
updateSessionStore,
updateSessionStoreEntry,
} from "../sessions.js";
import { withSessionStoreLockForTest } from "../sessions.js";
import { deriveSessionMetaPatch } from "./metadata.js";
import {
resolveSessionFilePath,
@@ -480,12 +479,6 @@ describe("withSessionStoreLock storePath guard (#14717)", () => {
updateSessionStoreUnsafe(undefined as unknown as string, (store) => store),
).rejects.toThrow("withSessionStoreLock: storePath must be a non-empty string");
});
it("withSessionStoreLockForTest also throws descriptive error when storePath is undefined", async () => {
await expect(
withSessionStoreLockForTest(undefined as unknown as string, async () => {}),
).rejects.toThrow("withSessionStoreLock: storePath must be a non-empty string");
});
});
describe("resolveMirroredTranscriptText", () => {