mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-19 01:17:31 +00:00
* Fix #5461: Task dates with delayed start-of-day Fixes incorrect behavior after midnight when start-of-next-day is set (e.g. 3 AM). Time between midnight and that hour maps to the correct logical day. * test(add-task-bar): mock getLogicalTodayDate for #5461 * test(date): address PR review for #5461 Treat out-of-range start-of-next-day hours as 0. Add logical-tomorrow tests with non-zero offset. * test: address optional PR review nits for #5461 * test(add-task-bar): drop redundant mocks from logical-today display test Mirror the simplification already applied to the logical-tomorrow test: dateDisplay() only reads getLogicalTodayDate(), so the todayStr / getStartOfNextDayDiffMs / Date.now stubs were circular and would let the test pass even if dateDisplay stopped honoring the offset. * test(add-task-bar): cover offset-aware today for repeat-preset tasks The repeat-preset dueDay and repeat-config startDate paths (added for #5461) had no behavioral coverage — reverting either to getDbDateStr() left all specs green. Add two tests that mock todayStr() to a fixed past date and assert addTask() forwards it to taskData.dueDay and the repeat-cfg startDate, so a regression to calendar-midnight is caught. --------- Co-authored-by: Johannes Millan <johannes.millan@gmail.com> |
||
|---|---|---|
| .. | ||
| app | ||
| assets | ||
| environments | ||
| static | ||
| styles | ||
| test-helpers | ||
| typings | ||
| _common.scss | ||
| favicon.ico | ||
| hammer-config.class.ts | ||
| index.html | ||
| karma.conf.js | ||
| main.ts | ||
| manifest.json | ||
| polyfills.ts | ||
| styles.scss | ||
| test.ts | ||
| tsconfig.app.json | ||
| tsconfig.spec.json | ||
| tsconfig.worker.json | ||