mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 18:50:42 +00:00
memory: fix dreaming transcript test lint
This commit is contained in:
@@ -796,9 +796,11 @@ describe("memory-core dreaming phases", () => {
|
||||
{ trigger: "heartbeat", workspaceDir },
|
||||
);
|
||||
|
||||
expect(readFileSpy.mock.calls.some(([target]) => String(target) === transcriptPath)).toBe(
|
||||
false,
|
||||
);
|
||||
expect(
|
||||
readFileSpy.mock.calls.some(
|
||||
([target]) => typeof target === "string" && target === transcriptPath,
|
||||
),
|
||||
).toBe(false);
|
||||
readFileSpy.mockRestore();
|
||||
} finally {
|
||||
vi.restoreAllMocks();
|
||||
|
||||
Reference in New Issue
Block a user