Repository navigation
test: remove duplicate capability coverage and strengthen boundary assertions - #33197
Conversation
|
No actionable comments were generated in the recent review.
|
There was a problem hiding this comment.
🧹 Nitpick comments: 1
src/shared/automation-cron-dialect.test.ts: 1
110-110:Trivial · Functional Correctness · Quick win Make the standalone day-of-month term observable.
The current
2is a Saturday in May 2026, while1,5permits only Monday and Friday. Therefore, the assertion is unchanged if the parser ignores2. Use8, which is a Friday and is not included by*/3, and add it to the expected matches. This is a test-coverage improvement, not a current production defect.Proposed fix
- expect(matchingDaysOfMay2026('0 9 2,*/3 * 1,5')).toEqual([1, 4, 22, 25]) + expect(matchingDaysOfMay2026('0 9 8,*/3 * 1,5')).toEqual([1, 4, 8, 22, 25])

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
fd679859-97ad-4357-93a0-0b5431428103
Files selected for processing: 14-
mobile/src/notifications/desktop-notification-channel.test.tsmobile/src/notifications/mobile-push-lease-renewal.test.tsmobile/src/notifications/notification-opt-in-gate.test.tsmobile/src/notifications/push-background-dismissal.test.tsmobile/src/notifications/push-dismissal-watermarks.test.tsmobile/src/notifications/push-host-fingerprint.test.tsmobile/src/notifications/push-notification-identity.test.tssrc/renderer/src/lib/typing-latency/sample-window.test.tssrc/shared/agent-process-presence-platform.test.tssrc/shared/agent-status-run-capability.test.tssrc/shared/agent-tui-input-clear.test.tssrc/shared/automation-cron-dialect.test.tssrc/shared/external-automation-jobs-file.test.tssrc/shared/twin-repo-host-routing.test-fixture.ts
Files with no reviewable changes: 1-
- src/shared/agent-status-run-capability.test.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
-
The run-capability test appended the required capability itself, so it duplicated codec coverage without checking the advertised inventory. Remove that case and strengthen existing notification, latency, process-evidence, input-clear, cron, and host-routing assertions found in a 48-source audit.
Notification expectations now use fixed fingerprint vectors, check literal channel/task/event names, and exercise identity limits. Distinct latency series catch crossed fields, and the shared routing fixture uses explicit expected hosts instead of reimplementing the routing policy. The fixture's 50 exported rows remain identical. Two titles now describe the behavior actually exercised.
Validation: 325 baseline / 324 final selected cases pass with zero skips; an additional routing consumer passes all 61 cases. Node, CLI, web, and mobile test typechecks, changed-file code quality, formatting, and commit hooks pass. Independent read-only validation authenticates all four sealed audit proposals and their grouped results. No production code changes.