mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 01:48:28 +00:00
test: remove duplicate empty-storePath guard case
This commit is contained in:
@@ -481,12 +481,6 @@ describe("withSessionStoreLock storePath guard (#14717)", () => {
|
|||||||
).rejects.toThrow("withSessionStoreLock: storePath must be a non-empty string");
|
).rejects.toThrow("withSessionStoreLock: storePath must be a non-empty string");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("throws descriptive error when storePath is empty string", async () => {
|
|
||||||
await expect(updateSessionStoreUnsafe("", (store) => store)).rejects.toThrow(
|
|
||||||
"withSessionStoreLock: storePath must be a non-empty string",
|
|
||||||
);
|
|
||||||
});
|
|
||||||
|
|
||||||
it("withSessionStoreLockForTest also throws descriptive error when storePath is undefined", async () => {
|
it("withSessionStoreLockForTest also throws descriptive error when storePath is undefined", async () => {
|
||||||
await expect(
|
await expect(
|
||||||
withSessionStoreLockForTest(undefined as unknown as string, async () => {}),
|
withSessionStoreLockForTest(undefined as unknown as string, async () => {}),
|
||||||
|
|||||||
Reference in New Issue
Block a user