diff --git a/apps/desktop/src/lib/time.test.ts b/apps/desktop/src/lib/time.test.ts index daf34ec521..7a6b742b93 100644 --- a/apps/desktop/src/lib/time.test.ts +++ b/apps/desktop/src/lib/time.test.ts @@ -137,6 +137,7 @@ describe('sessionBucketLabel', () => { if (monthBucket.kind !== 'month') { throw new Error(`expected month bucket, got ${monthBucket.kind}`) } + expect(sessionBucketLabel(monthBucket, labels)).toBe(fmtMonth.format(monthBucket.at)) const monthYearBucket = calendarBucket(secondsAt(2025, 11, 3), THU_NOON, 1) @@ -144,6 +145,7 @@ describe('sessionBucketLabel', () => { if (monthYearBucket.kind !== 'monthYear') { throw new Error(`expected monthYear bucket, got ${monthYearBucket.kind}`) } + expect(sessionBucketLabel(monthYearBucket, labels)).toBe(fmtMonthYear.format(monthYearBucket.at)) }) })