fix(FN-1026): normalize formatResetAt to use calendar-day boundaries
- Fix formatResetAt to compute day difference from calendar midnight boundaries instead of raw millisecond division - Prevents off-by-one day counts that caused inconsistent formatting near 7-day boundary - Add comprehensive unit tests for formatResetAt boundary conditions (7-day edge, today, beyond 7 days) - Fix pre-existing scheduler test assertion to use expect.objectContaining for worktree/baseBranch fields
This commit is contained in:
@@ -616,7 +616,7 @@ describe("Scheduler after restart", () => {
|
||||
scheduler.stop();
|
||||
|
||||
expect(store.moveTask).toHaveBeenCalledWith("FN-070", "in-progress");
|
||||
expect(store.updateTask).toHaveBeenCalledWith("FN-070", { status: null, blockedBy: null });
|
||||
expect(store.updateTask).toHaveBeenCalledWith("FN-070", expect.objectContaining({ status: null, blockedBy: null }));
|
||||
expect(onSchedule).toHaveBeenCalledWith(todoTask);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user