Skip to content

Commit a596107

Browse files
Clean
1 parent df3d20e commit a596107

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/x-scheduler/src/event-calendar/mini-calendar/MiniCalendar.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ describe('MiniCalendar', () => {
4444
});
4545

4646
it('should highlight the active/visible date with data-active attribute', () => {
47-
render(<EventCalendar events={[]} defaultVisibleDate="2025-05-20T00:00:00Z" />);
47+
render(<EventCalendar events={[]} defaultVisibleDate={new Date('2025-05-20T00:00:00Z')} />);
4848

4949
const miniCalendar = getMiniCalendar();
5050
const dayButtons = within(miniCalendar).getAllByRole('button');
@@ -130,7 +130,7 @@ describe('MiniCalendar', () => {
130130

131131
it('should sync mini calendar month when scheduler visibleDate changes', async () => {
132132
const { user } = render(
133-
<EventCalendar events={[]} defaultVisibleDate="2025-05-26T00:00:00Z" />,
133+
<EventCalendar events={[]} defaultVisibleDate={new Date('2025-05-26T00:00:00Z')} />,
134134
);
135135

136136
// Initially the mini calendar shows May 2025
@@ -179,7 +179,7 @@ describe('MiniCalendar', () => {
179179
});
180180

181181
it('should have aria-selected on the active day', () => {
182-
render(<EventCalendar events={[]} defaultVisibleDate="2025-05-20T00:00:00Z" />);
182+
render(<EventCalendar events={[]} defaultVisibleDate={new Date('2025-05-20T00:00:00Z')} />);
183183

184184
const miniCalendar = getMiniCalendar();
185185
const dayButtons = within(miniCalendar).getAllByRole('button');

0 commit comments

Comments
 (0)