Skip to content

Commit

Permalink
Remove unecessary comma from calendar header
Browse files Browse the repository at this point in the history
  • Loading branch information
rsandz committed Feb 3, 2024
1 parent 73f2780 commit 4ccff66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gui/Calendar/CalendarControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function CalendarControls({
>
{controlHeld ? <FaAnglesLeft /> : <FaAngleLeft />}
</Button>
<CalendarDate>{shownMonth.format("MMM, YYYY")}</CalendarDate>
<CalendarDate>{shownMonth.format("MMM YYYY")}</CalendarDate>
<Button
onClick={controlHeld ? onNextYearClicked : onNextMonthClicked}
aria-label="calendar-next"
Expand Down
2 changes: 1 addition & 1 deletion src/gui/Calendar/__tests__/Calendar.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe("calendar", () => {
const date = moment("May-29-2023", "MMM-DD-YYYY");
render(<Calendar selectedDate={date} />);

expect(screen.getByText("May, 2023")).toBeDefined();
expect(screen.getByText("May 2023")).toBeDefined();

const cells = screen.getAllByRole("cell");
expect(cells).toHaveLength(42); // 7 days * 6 rows
Expand Down

0 comments on commit 4ccff66

Please sign in to comment.