test: remove duplicate passthrough storePath guard case
This commit is contained in:
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user