We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0bb383 commit 228cd49Copy full SHA for 228cd49
src/__tests__/DateTimePicker.jsx
@@ -132,6 +132,18 @@ describe('DateTimePicker', () => {
132
expect(clock).toHaveLength(1);
133
});
134
135
+ it('does not render Clock component when given disableClock & isClockOpen flags', () => {
136
+ const component = mount(
137
+ <DateTimePicker disableClock isClockOpen />
138
+ );
139
+
140
+ const dateTimeInput = component.find('DateTimeInput');
141
+ const clock = component.find('Clock');
142
143
+ expect(dateTimeInput).toHaveLength(1);
144
+ expect(clock).toHaveLength(0);
145
+ });
146
147
it('opens Calendar component when given isCalendarOpen flag by changing props', () => {
148
const component = mount(
149
<DateTimePicker />
0 commit comments