memory: fix dreaming transcript test lint

This commit is contained in:
Gustavo Madeira Santana
2026-04-14 20:22:47 -04:00
parent 56769a5419
commit 4742656a0d

View File

@@ -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();