Skip to content

Commit 9af5770

Browse files
committed
fix: remove errorneous test assumptions
1 parent 7325c37 commit 9af5770

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

test/include_times_test.test.js

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff 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");

0 commit comments

Comments
 (0)