Skip to content

Commit f6deae7

Browse files
JakeTheRabbitclaude
andcommitted
Fix audit-count assertion for the added paid-break test
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 2856fa4 commit f6deae7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

timeclock/webapp/tests/p3-clock.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ run("P3 clock flow (real Postgres)", () => {
188188
const actions = Object.fromEntries(audit.rows.map((r) => [r.action, r.n]));
189189
expect(actions.clock_in).toBeGreaterThanOrEqual(2);
190190
expect(actions.clock_out).toBeGreaterThanOrEqual(2);
191-
expect(actions.break_start).toBe(1);
192-
expect(actions.break_end).toBe(1);
191+
expect(actions.break_start).toBe(2); // unpaid round-trip + paid rest break
192+
expect(actions.break_end).toBe(2);
193193
expect(actions.auto_deduct).toBe(1);
194194
expect(actions.switch_job_open).toBe(1);
195195

0 commit comments

Comments
 (0)