aboutsummaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2025-11-16 18:16:38 -0600
committerCraig Jennings <c@cjennings.net>2025-11-16 18:16:38 -0600
commit49c1d02a1e29f85b2fd0acfb57473f2b9e5e0f00 (patch)
tree8de2b760c3300e7747436bb88d44df2472031550 /assets
parentddcc2319c8283ff331f07c1b9645938bd25d4d37 (diff)
downloaddotemacs-49c1d02a1e29f85b2fd0acfb57473f2b9e5e0f00.tar.gz
dotemacs-49c1d02a1e29f85b2fd0acfb57473f2b9e5e0f00.zip
test(calendar-sync): Add unit tests for UTC conversion function
Added 5 dedicated unit tests for calendar-sync--convert-utc-to-local function that was extracted during refactoring: - test-calendar-sync--convert-utc-to-local-basic-conversion Tests standard UTC to local time conversion - test-calendar-sync--convert-utc-to-local-midnight-boundary Tests day boundary handling (UTC midnight → previous day in some timezones) - test-calendar-sync--convert-utc-to-local-preserves-minutes Verifies minute component preservation during conversion - test-calendar-sync--convert-utc-to-local-returns-five-elements Validates return format and element types - test-calendar-sync--convert-utc-to-local-end-of-day Tests near end-of-day conversion (potential rollover to next day) Test coverage increased from 51 to 56 tests, all passing. The extracted function now has both direct unit tests (isolation) and indirect integration tests (via calendar-sync--parse-timestamp).
Diffstat (limited to 'assets')
0 files changed, 0 insertions, 0 deletions