mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 04:21:24 +00:00
test: remove duplicate passthrough storePath guard case
This commit is contained in:
@@ -12,7 +12,6 @@ import {
|
|||||||
updateSessionStore,
|
updateSessionStore,
|
||||||
updateSessionStoreEntry,
|
updateSessionStoreEntry,
|
||||||
} from "../sessions.js";
|
} from "../sessions.js";
|
||||||
import { withSessionStoreLockForTest } from "../sessions.js";
|
|
||||||
import { deriveSessionMetaPatch } from "./metadata.js";
|
import { deriveSessionMetaPatch } from "./metadata.js";
|
||||||
import {
|
import {
|
||||||
resolveSessionFilePath,
|
resolveSessionFilePath,
|
||||||
@@ -480,12 +479,6 @@ describe("withSessionStoreLock storePath guard (#14717)", () => {
|
|||||||
updateSessionStoreUnsafe(undefined as unknown as string, (store) => store),
|
updateSessionStoreUnsafe(undefined as unknown as string, (store) => store),
|
||||||
).rejects.toThrow("withSessionStoreLock: storePath must be a non-empty string");
|
).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", () => {
|
describe("resolveMirroredTranscriptText", () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user