Merge pull request #92 from AutoMaker-Org/copilot/fix-build-tests-issue

Fix test expectation for fs.readFile call count in agent-service.test.ts
This commit is contained in:
GTheMachine
2025-12-14 14:36:00 -05:00
committed by GitHub

View File

@@ -103,8 +103,9 @@ describe("agent-service.ts", () => {
});
expect(result.success).toBe(true);
// Should only read file once
expect(fs.readFile).toHaveBeenCalledTimes(1);
// First call reads session file and metadata file (2 calls)
// Second call should reuse in-memory session (no additional calls)
expect(fs.readFile).toHaveBeenCalledTimes(2);
});
});