aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-04-22 07:19:41 -0500
committerCraig Jennings <c@cjennings.net>2026-04-22 07:19:41 -0500
commit8511cf43f2bf4ab2dc539fd28427e6c81c98b901 (patch)
treea0046f0b9517f85299b42b8e7941e8b749a9e56c /.github/workflows
parent4ae0429b6a32377cefbfb3d46d3bc9a5cb8613e9 (diff)
downloadchime-8511cf43f2bf4ab2dc539fd28427e6c81c98b901.tar.gz
chime-8511cf43f2bf4ab2dc539fd28427e6c81c98b901.zip
test: add unit tests for chime--day-label-for-event-time
Seven pure-function tests appended to the group-events-by-day file, covering Normal and Boundary cases. Normal: event on the same calendar day as NOW returns "Today, ...". Event on the same calendar day as TOMORROW returns "Tomorrow, ...". Event three days out returns a weekday label and is neither Today nor Tomorrow. Boundary: event at 00:00 on the NOW calendar day is Today. Event at 00:00 on the TOMORROW calendar day is Tomorrow. Event two calendar days out is not Tomorrow, gets a weekday label. Event on the previous calendar day is neither Today nor Tomorrow. Since NOW and TOMORROW are function arguments, the tests use encode-time to build stable calendar values and skip the clock-mocking dance.
Diffstat (limited to '.github/workflows')
0 files changed, 0 insertions, 0 deletions