File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed
Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -67,23 +67,11 @@ describe("TimeComponent", () => {
6767 /> ,
6868 ) ;
6969
70- const allTimeItems = timeComponent . querySelectorAll (
71- ".react-datepicker__time-list-item" ,
72- ) ;
73-
74- // 01:00:30 and 00:00:30 should be correctly visible in the time list
75- expect ( Array . from ( allTimeItems ) . map ( ( node ) => node . textContent ) ) . toContain (
76- "01:00:30" ,
77- ) ;
78- expect ( Array . from ( allTimeItems ) . map ( ( node ) => node . textContent ) ) . toContain (
79- "00:00:30" ,
80- ) ;
81-
8270 const disabledTimeItems = timeComponent . querySelectorAll (
8371 ".react-datepicker__time-list-item--disabled" ,
8472 ) ;
8573
86- // 01:00:00 and 00:00:00 should be correctly disabled
74+ // 01:00:00 and 00:00:00 should be correctly disabled because they are not included
8775 expect (
8876 Array . from ( disabledTimeItems ) . map ( ( node ) => node . textContent ) ,
8977 ) . toContain ( "01:00:00" ) ;
You can’t perform that action at this time.
0 commit comments