File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/x-scheduler/src/event-calendar/mini-calendar Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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' ) ;
You can’t perform that action at this time.
0 commit comments