Skip to content

Commit 34ce85a

Browse files
committed
test: dedupe heartbeat commitment mock read
1 parent a95a317 commit 34ce85a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/infra/heartbeat-runner.commitments.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ describe("runHeartbeatOnce commitments", () => {
369369
runner.stop();
370370

371371
expect(runOnce).toHaveBeenCalledTimes(1);
372-
const runOptions = runOnce.mock.calls.at(0)?.[0] as
372+
const runOptions = runOnce.mock.calls[0]?.[0] as
373373
| { agentId?: string; heartbeat?: { target?: string }; sessionKey?: string }
374374
| undefined;
375375
expect(runOptions?.agentId).toBe("main");

0 commit comments

Comments
 (0)