Skip to content

Commit 0eb47cc

Browse files
dependabot[bot]Frontend Developerclaude
authored
chore(deps-dev): bump handlebars from 4.7.8 to 4.7.9 (#1216)
* chore(deps-dev): bump handlebars from 4.7.8 to 4.7.9 Bumps [handlebars](https://github.com/handlebars-lang/handlebars.js) from 4.7.8 to 4.7.9. - [Release notes](https://github.com/handlebars-lang/handlebars.js/releases) - [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/v4.7.9/release-notes.md) - [Commits](handlebars-lang/handlebars.js@v4.7.8...v4.7.9) --- updated-dependencies: - dependency-name: handlebars dependency-version: 4.7.9 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * fix(test): make CalendarView week label test handle cross-month ranges The regex only matched same-month ranges (e.g. "March 10–16") but failed when the week spans two months (e.g. "March 29 – April 4, 2026") since the format includes a month name between the day numbers. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Frontend Developer <frontend-developer@cornerstone.local> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent d6d89e1 commit 0eb47cc

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

client/src/components/calendar/CalendarView.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -417,11 +417,11 @@ describe('CalendarView', () => {
417417
expect(heading.textContent).toMatch(/^[A-Z][a-z]+ \d{4}$/);
418418
});
419419

420-
it('shows week range in week mode when both days in same month', () => {
420+
it('shows week range in week mode', () => {
421421
renderCalendar({ initialSearchParams: 'calendarMode=week' });
422422
const heading = screen.getByRole('heading', { level: 2 });
423-
// Format: "March 10–16, 2024" or similar — contains "–" range separator
424-
expect(heading.textContent).toMatch(/\d+[-]\d+/);
423+
// Same month: "March 10–16, 2024" | Cross month: "March 29 – April 4, 2026"
424+
expect(heading.textContent).toMatch(/[A-Z][a-z]+ \d+\s*[-]\s*([A-Z][a-z]+ )?\d+, \d{4}/);
425425
});
426426

427427
it('updates period label after month navigation', () => {

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)