@docsvision/material-ui-pickers 3.2.0-beta.25 → 3.2.0-beta.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.size-snapshot.json +26 -0
- package/9db1cba1a61cb58db53f38425bbd1f95.7z +0 -0
- package/{DatePicker → build/DatePicker}/DatePicker.d.ts +2 -2
- package/{DatePicker → build/DatePicker}/DatePicker.js +1 -1
- package/{DateTimePicker → build/DateTimePicker}/DateTimePicker.js +1 -1
- package/{Picker → build/Picker}/Picker.js +1 -1
- package/{TimePicker → build/TimePicker}/TimePicker.js +1 -1
- package/{_helpers → build/_helpers}/text-field-helper.d.ts +1 -1
- package/{_shared → build/_shared}/KeyboardDateInput.js +1 -1
- package/{_shared → build/_shared}/ModalDialog.d.ts +2 -2
- package/{_shared → build/_shared}/PureDateInput.js +1 -1
- package/{_shared → build/_shared}/ToolbarButton.d.ts +2 -2
- package/{_shared → build/_shared}/hooks/useKeyboardPickerState.js +2 -2
- package/{constants → build/constants}/prop-types.js +2 -2
- package/{dist → build/dist}/material-ui-pickers.esm.js +12 -12
- package/build/dist/material-ui-pickers.esm.js.map +1 -0
- package/{dist → build/dist}/material-ui-pickers.js +62 -62
- package/build/dist/material-ui-pickers.js.map +1 -0
- package/{dist → build/dist}/material-ui-pickers.umd.js +5790 -4511
- package/build/dist/material-ui-pickers.umd.min.js +1 -0
- package/build/package.json +62 -0
- package/{views → build/views}/Calendar/Calendar.js +2 -2
- package/{views → build/views}/Clock/Clock.d.ts +1 -1
- package/{views → build/views}/Clock/ClockPointer.d.ts +1 -1
- package/copy.js +58 -0
- package/package.json +135 -62
- package/remove-prop-types.js +37 -0
- package/rollup.config.js +145 -0
- package/src/DatePicker/DatePicker.tsx +91 -0
- package/src/DatePicker/DatePickerToolbar.tsx +75 -0
- package/src/DatePicker/index.ts +7 -0
- package/src/DateTimePicker/DateTimePicker.tsx +72 -0
- package/src/DateTimePicker/DateTimePickerTabs.tsx +86 -0
- package/src/DateTimePicker/DateTimePickerToolbar.tsx +123 -0
- package/src/DateTimePicker/index.ts +7 -0
- package/src/MuiPickersUtilsProvider.tsx +39 -0
- package/src/Picker/Picker.tsx +275 -0
- package/src/Picker/WrappedKeyboardPicker.tsx +136 -0
- package/src/Picker/WrappedPurePicker.tsx +128 -0
- package/src/Rifm/Rifm.ts +213 -0
- package/src/TimePicker/TimePicker.tsx +67 -0
- package/src/TimePicker/TimePickerToolbar.tsx +180 -0
- package/src/TimePicker/index.tsx +7 -0
- package/src/__tests__/DatePicker/Calendar.test.tsx +51 -0
- package/src/__tests__/DatePicker/Month.test.tsx +36 -0
- package/src/__tests__/DatePicker/MonthSelection.test.tsx +37 -0
- package/src/__tests__/MuiPickersUtilsProvider.test.tsx +21 -0
- package/src/__tests__/TimePicker/Clock.test.tsx +68 -0
- package/src/__tests__/_helpers/date-utils.test.tsx +197 -0
- package/src/__tests__/_helpers/text-field-helper.test.tsx +34 -0
- package/src/__tests__/_shared/ModalDialog.test.tsx +109 -0
- package/src/__tests__/e2e/DatePicker.test.tsx +233 -0
- package/src/__tests__/e2e/DatePickerProps.test.tsx +18 -0
- package/src/__tests__/e2e/DatePickerRoot.test.tsx +154 -0
- package/src/__tests__/e2e/DateTimePicker.test.tsx +86 -0
- package/src/__tests__/e2e/DateTimePickerRoot.test.tsx +72 -0
- package/src/__tests__/e2e/KeyboardDatePicker.test.tsx +140 -0
- package/src/__tests__/e2e/KeyboardDateTimePicker.test.tsx +48 -0
- package/src/__tests__/e2e/Theme.test.tsx +30 -0
- package/src/__tests__/e2e/TimePicker.test.tsx +121 -0
- package/src/__tests__/e2e/commands.tsx +8 -0
- package/src/__tests__/setup.js +26 -0
- package/src/__tests__/test-utils.tsx +45 -0
- package/src/__tests__/tsconfig.json +5 -0
- package/src/_helpers/date-utils.ts +92 -0
- package/src/_helpers/text-field-helper.ts +239 -0
- package/src/_helpers/time-utils.ts +83 -0
- package/src/_helpers/utils.ts +8 -0
- package/src/_shared/KeyboardDateInput.tsx +161 -0
- package/src/_shared/ModalDialog.tsx +114 -0
- package/src/_shared/PickerToolbar.tsx +52 -0
- package/src/_shared/PureDateInput.tsx +45 -0
- package/src/_shared/ToolbarButton.tsx +63 -0
- package/src/_shared/ToolbarText.tsx +49 -0
- package/src/_shared/WithUtils.tsx +19 -0
- package/src/_shared/hooks/useIsLandscape.tsx +27 -0
- package/src/_shared/hooks/useKeyDown.ts +34 -0
- package/src/_shared/hooks/useKeyboardPickerState.ts +72 -0
- package/src/_shared/hooks/useOpenState.ts +22 -0
- package/src/_shared/hooks/usePickerState.ts +134 -0
- package/src/_shared/hooks/useUtils.ts +20 -0
- package/src/_shared/hooks/useViews.tsx +31 -0
- package/src/_shared/icons/ArrowLeftIcon.tsx +11 -0
- package/src/_shared/icons/ArrowRightIcon.tsx +11 -0
- package/src/_shared/icons/DateRangeIcon.tsx +11 -0
- package/src/_shared/icons/KeyboardIcon.tsx +11 -0
- package/src/_shared/icons/TimeIcon.tsx +12 -0
- package/src/constants/ClockType.ts +11 -0
- package/src/constants/dimensions.ts +5 -0
- package/src/constants/prop-types.ts +37 -0
- package/src/index.ts +48 -0
- package/src/typings/BasePicker.tsx +60 -0
- package/src/typings/date.ts +3 -0
- package/src/typings/extendMui.ts +10 -0
- package/src/typings/overrides.ts +44 -0
- package/src/views/Calendar/Calendar.tsx +361 -0
- package/src/views/Calendar/CalendarHeader.tsx +141 -0
- package/src/views/Calendar/Day.tsx +97 -0
- package/src/views/Calendar/DayWrapper.tsx +33 -0
- package/src/views/Calendar/SlideTransition.tsx +100 -0
- package/src/views/Clock/Clock.tsx +172 -0
- package/src/views/Clock/ClockNumber.tsx +91 -0
- package/src/views/Clock/ClockNumbers.tsx +76 -0
- package/src/views/Clock/ClockPointer.tsx +104 -0
- package/src/views/Clock/ClockView.tsx +105 -0
- package/src/views/Month/Month.tsx +76 -0
- package/src/views/Month/MonthView.tsx +94 -0
- package/src/views/Year/Year.tsx +77 -0
- package/src/views/Year/YearView.tsx +91 -0
- package/src/wrappers/InlineWrapper.tsx +80 -0
- package/src/wrappers/ModalWrapper.tsx +113 -0
- package/src/wrappers/StaticWrapper.tsx +22 -0
- package/src/wrappers/Wrapper.tsx +75 -0
- package/tsconfig.json +21 -0
- package/typings.d.ts +6 -0
- package/dist/material-ui-pickers.esm.js.map +0 -1
- package/dist/material-ui-pickers.js.map +0 -1
- package/dist/material-ui-pickers.umd.min.js +0 -1
- /package/{DatePicker → build/DatePicker}/DatePickerToolbar.d.ts +0 -0
- /package/{DatePicker → build/DatePicker}/DatePickerToolbar.js +0 -0
- /package/{DatePicker → build/DatePicker}/index.d.ts +0 -0
- /package/{DatePicker → build/DatePicker}/index.js +0 -0
- /package/{DateTimePicker → build/DateTimePicker}/DateTimePicker.d.ts +0 -0
- /package/{DateTimePicker → build/DateTimePicker}/DateTimePickerTabs.d.ts +0 -0
- /package/{DateTimePicker → build/DateTimePicker}/DateTimePickerTabs.js +0 -0
- /package/{DateTimePicker → build/DateTimePicker}/DateTimePickerToolbar.d.ts +0 -0
- /package/{DateTimePicker → build/DateTimePicker}/DateTimePickerToolbar.js +0 -0
- /package/{DateTimePicker → build/DateTimePicker}/index.d.ts +0 -0
- /package/{DateTimePicker → build/DateTimePicker}/index.js +0 -0
- /package/{MuiPickersUtilsProvider.d.ts → build/MuiPickersUtilsProvider.d.ts} +0 -0
- /package/{MuiPickersUtilsProvider.js → build/MuiPickersUtilsProvider.js} +0 -0
- /package/{Picker → build/Picker}/Picker.d.ts +0 -0
- /package/{Picker → build/Picker}/WrappedKeyboardPicker.d.ts +0 -0
- /package/{Picker → build/Picker}/WrappedKeyboardPicker.js +0 -0
- /package/{Picker → build/Picker}/WrappedPurePicker.d.ts +0 -0
- /package/{Picker → build/Picker}/WrappedPurePicker.js +0 -0
- /package/{README.md → build/README.md} +0 -0
- /package/{Rifm → build/Rifm}/Rifm.d.ts +0 -0
- /package/{Rifm → build/Rifm}/Rifm.js +0 -0
- /package/{TimePicker → build/TimePicker}/TimePicker.d.ts +0 -0
- /package/{TimePicker → build/TimePicker}/TimePickerToolbar.d.ts +0 -0
- /package/{TimePicker → build/TimePicker}/TimePickerToolbar.js +0 -0
- /package/{TimePicker → build/TimePicker}/index.d.ts +0 -0
- /package/{TimePicker → build/TimePicker}/index.js +0 -0
- /package/{_helpers → build/_helpers}/date-utils.d.ts +0 -0
- /package/{_helpers → build/_helpers}/date-utils.js +0 -0
- /package/{_helpers → build/_helpers}/text-field-helper.js +0 -0
- /package/{_helpers → build/_helpers}/time-utils.d.ts +0 -0
- /package/{_helpers → build/_helpers}/time-utils.js +0 -0
- /package/{_helpers → build/_helpers}/utils.d.ts +0 -0
- /package/{_helpers → build/_helpers}/utils.js +0 -0
- /package/{_shared → build/_shared}/KeyboardDateInput.d.ts +0 -0
- /package/{_shared → build/_shared}/ModalDialog.js +0 -0
- /package/{_shared → build/_shared}/PickerToolbar.d.ts +0 -0
- /package/{_shared → build/_shared}/PickerToolbar.js +0 -0
- /package/{_shared → build/_shared}/PureDateInput.d.ts +0 -0
- /package/{_shared → build/_shared}/ToolbarButton.js +0 -0
- /package/{_shared → build/_shared}/ToolbarText.d.ts +0 -0
- /package/{_shared → build/_shared}/ToolbarText.js +0 -0
- /package/{_shared → build/_shared}/WithUtils.d.ts +0 -0
- /package/{_shared → build/_shared}/WithUtils.js +0 -0
- /package/{_shared → build/_shared}/hooks/useIsLandscape.d.ts +0 -0
- /package/{_shared → build/_shared}/hooks/useIsLandscape.js +0 -0
- /package/{_shared → build/_shared}/hooks/useKeyDown.d.ts +0 -0
- /package/{_shared → build/_shared}/hooks/useKeyDown.js +0 -0
- /package/{_shared → build/_shared}/hooks/useKeyboardPickerState.d.ts +0 -0
- /package/{_shared → build/_shared}/hooks/useOpenState.d.ts +0 -0
- /package/{_shared → build/_shared}/hooks/useOpenState.js +0 -0
- /package/{_shared → build/_shared}/hooks/usePickerState.d.ts +0 -0
- /package/{_shared → build/_shared}/hooks/usePickerState.js +0 -0
- /package/{_shared → build/_shared}/hooks/useUtils.d.ts +0 -0
- /package/{_shared → build/_shared}/hooks/useUtils.js +0 -0
- /package/{_shared → build/_shared}/hooks/useViews.d.ts +0 -0
- /package/{_shared → build/_shared}/hooks/useViews.js +0 -0
- /package/{_shared → build/_shared}/icons/ArrowLeftIcon.d.ts +0 -0
- /package/{_shared → build/_shared}/icons/ArrowLeftIcon.js +0 -0
- /package/{_shared → build/_shared}/icons/ArrowRightIcon.d.ts +0 -0
- /package/{_shared → build/_shared}/icons/ArrowRightIcon.js +0 -0
- /package/{_shared → build/_shared}/icons/DateRangeIcon.d.ts +0 -0
- /package/{_shared → build/_shared}/icons/DateRangeIcon.js +0 -0
- /package/{_shared → build/_shared}/icons/KeyboardIcon.d.ts +0 -0
- /package/{_shared → build/_shared}/icons/KeyboardIcon.js +0 -0
- /package/{_shared → build/_shared}/icons/TimeIcon.d.ts +0 -0
- /package/{_shared → build/_shared}/icons/TimeIcon.js +0 -0
- /package/{constants → build/constants}/ClockType.d.ts +0 -0
- /package/{constants → build/constants}/ClockType.js +0 -0
- /package/{constants → build/constants}/dimensions.d.ts +0 -0
- /package/{constants → build/constants}/dimensions.js +0 -0
- /package/{constants → build/constants}/prop-types.d.ts +0 -0
- /package/{index.d.ts → build/index.d.ts} +0 -0
- /package/{index.js → build/index.js} +0 -0
- /package/{typings → build/typings}/BasePicker.d.ts +0 -0
- /package/{typings → build/typings}/BasePicker.js +0 -0
- /package/{typings → build/typings}/date.d.ts +0 -0
- /package/{typings → build/typings}/date.js +0 -0
- /package/{typings → build/typings}/extendMui.d.ts +0 -0
- /package/{typings → build/typings}/extendMui.js +0 -0
- /package/{typings → build/typings}/overrides.d.ts +0 -0
- /package/{typings → build/typings}/overrides.js +0 -0
- /package/{views → build/views}/Calendar/Calendar.d.ts +0 -0
- /package/{views → build/views}/Calendar/CalendarHeader.d.ts +0 -0
- /package/{views → build/views}/Calendar/CalendarHeader.js +0 -0
- /package/{views → build/views}/Calendar/Day.d.ts +0 -0
- /package/{views → build/views}/Calendar/Day.js +0 -0
- /package/{views → build/views}/Calendar/DayWrapper.d.ts +0 -0
- /package/{views → build/views}/Calendar/DayWrapper.js +0 -0
- /package/{views → build/views}/Calendar/SlideTransition.d.ts +0 -0
- /package/{views → build/views}/Calendar/SlideTransition.js +0 -0
- /package/{views → build/views}/Clock/Clock.js +0 -0
- /package/{views → build/views}/Clock/ClockNumber.d.ts +0 -0
- /package/{views → build/views}/Clock/ClockNumber.js +0 -0
- /package/{views → build/views}/Clock/ClockNumbers.d.ts +0 -0
- /package/{views → build/views}/Clock/ClockNumbers.js +0 -0
- /package/{views → build/views}/Clock/ClockPointer.js +0 -0
- /package/{views → build/views}/Clock/ClockView.d.ts +0 -0
- /package/{views → build/views}/Clock/ClockView.js +0 -0
- /package/{views → build/views}/Month/Month.d.ts +0 -0
- /package/{views → build/views}/Month/Month.js +0 -0
- /package/{views → build/views}/Month/MonthView.d.ts +0 -0
- /package/{views → build/views}/Month/MonthView.js +0 -0
- /package/{views → build/views}/Year/Year.d.ts +0 -0
- /package/{views → build/views}/Year/Year.js +0 -0
- /package/{views → build/views}/Year/YearView.d.ts +0 -0
- /package/{views → build/views}/Year/YearView.js +0 -0
- /package/{wrappers → build/wrappers}/InlineWrapper.d.ts +0 -0
- /package/{wrappers → build/wrappers}/InlineWrapper.js +0 -0
- /package/{wrappers → build/wrappers}/ModalWrapper.d.ts +0 -0
- /package/{wrappers → build/wrappers}/ModalWrapper.js +0 -0
- /package/{wrappers → build/wrappers}/StaticWrapper.d.ts +0 -0
- /package/{wrappers → build/wrappers}/StaticWrapper.js +0 -0
- /package/{wrappers → build/wrappers}/Wrapper.d.ts +0 -0
- /package/{wrappers → build/wrappers}/Wrapper.js +0 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ShallowWrapper } from 'enzyme';
|
|
3
|
+
import { shallow } from '../test-utils';
|
|
4
|
+
import { ModalDialog, ModalDialogProps } from '../../_shared/ModalDialog';
|
|
5
|
+
|
|
6
|
+
const initialProps = {
|
|
7
|
+
onAccept: jest.fn(),
|
|
8
|
+
onDismiss: jest.fn(),
|
|
9
|
+
onClear: jest.fn(),
|
|
10
|
+
onKeyDownInner: jest.fn(),
|
|
11
|
+
okLabel: 'OK',
|
|
12
|
+
open: false,
|
|
13
|
+
cancelLabel: 'Cancel',
|
|
14
|
+
clearLabel: 'Clear',
|
|
15
|
+
clearable: false,
|
|
16
|
+
todayLabel: 'Today',
|
|
17
|
+
showTodayButton: false,
|
|
18
|
+
onSetToday: jest.fn(),
|
|
19
|
+
children: 'Test',
|
|
20
|
+
classes: {} as any,
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
describe('ModalDialog', () => {
|
|
24
|
+
let component: ShallowWrapper<ModalDialogProps>;
|
|
25
|
+
const props = { ...initialProps };
|
|
26
|
+
|
|
27
|
+
beforeEach(() => {
|
|
28
|
+
component = shallow(<ModalDialog {...props} />);
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
it('Should render dialog content', () => {
|
|
32
|
+
expect(component.find('WithStyles(ForwardRef(DialogContent))').props().children).toBe(
|
|
33
|
+
props.children
|
|
34
|
+
);
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
it('Should render dialog actions with 2 buttons', () => {
|
|
38
|
+
expect(component.find('WithStyles(ForwardRef(DialogActions))').length).toBe(1);
|
|
39
|
+
expect(
|
|
40
|
+
component
|
|
41
|
+
.find('WithStyles(ForwardRef(Button))')
|
|
42
|
+
.at(0)
|
|
43
|
+
.props().children
|
|
44
|
+
).toBe('Cancel');
|
|
45
|
+
|
|
46
|
+
expect(
|
|
47
|
+
component
|
|
48
|
+
.find('WithStyles(ForwardRef(Button))')
|
|
49
|
+
.at(1)
|
|
50
|
+
.props().children
|
|
51
|
+
).toBe('OK');
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
it('Should handle on OK button click', () => {
|
|
55
|
+
component
|
|
56
|
+
.find('WithStyles(ForwardRef(Button))')
|
|
57
|
+
.at(1)
|
|
58
|
+
.simulate('click');
|
|
59
|
+
expect(props.onAccept).toHaveBeenCalled();
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
it('Should handle on Cancel button click', () => {
|
|
63
|
+
component
|
|
64
|
+
.find('WithStyles(ForwardRef(Button))')
|
|
65
|
+
.at(0)
|
|
66
|
+
.simulate('click');
|
|
67
|
+
expect(props.onDismiss).toHaveBeenCalled();
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
describe('ModalDialog with Clear Button', () => {
|
|
72
|
+
let component: ShallowWrapper<ModalDialogProps>;
|
|
73
|
+
const props = {
|
|
74
|
+
...initialProps,
|
|
75
|
+
clearable: true,
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
beforeEach(() => {
|
|
79
|
+
component = shallow(<ModalDialog {...props} />);
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
it('Should handle on Clear button click', () => {
|
|
83
|
+
component
|
|
84
|
+
.find('WithStyles(ForwardRef(Button))')
|
|
85
|
+
.at(0)
|
|
86
|
+
.simulate('click');
|
|
87
|
+
expect(props.onClear).toHaveBeenCalled();
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
describe('ModalDialog with Today Button', () => {
|
|
92
|
+
let component: ShallowWrapper<ModalDialogProps>;
|
|
93
|
+
const props = {
|
|
94
|
+
...initialProps,
|
|
95
|
+
showTodayButton: true,
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
beforeEach(() => {
|
|
99
|
+
component = shallow(<ModalDialog {...props} />);
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
it('Should handle on Clear button click', () => {
|
|
103
|
+
component
|
|
104
|
+
.find('WithStyles(ForwardRef(Button))')
|
|
105
|
+
.at(0)
|
|
106
|
+
.simulate('click');
|
|
107
|
+
expect(props.onSetToday).toHaveBeenCalled();
|
|
108
|
+
});
|
|
109
|
+
});
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ReactWrapper } from 'enzyme';
|
|
3
|
+
import { mount, utilsToUse } from '../test-utils';
|
|
4
|
+
import { DatePicker, DatePickerProps } from '../../DatePicker/DatePicker';
|
|
5
|
+
|
|
6
|
+
describe('e2e - DatePicker default year format', () => {
|
|
7
|
+
let component: ReactWrapper<DatePickerProps>;
|
|
8
|
+
const onChangeMock = jest.fn();
|
|
9
|
+
const date = utilsToUse.date('2018-01-01T00:00:00.000Z');
|
|
10
|
+
|
|
11
|
+
beforeEach(() => {
|
|
12
|
+
jest.clearAllMocks();
|
|
13
|
+
component = mount(
|
|
14
|
+
<DatePicker
|
|
15
|
+
animateYearScrolling={false}
|
|
16
|
+
value={utilsToUse.date('2018-01-01T00:00:00.000')}
|
|
17
|
+
onChange={onChangeMock}
|
|
18
|
+
views={['year']}
|
|
19
|
+
/>
|
|
20
|
+
);
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
it('Should use year format by default for year only view', () => {
|
|
24
|
+
expect(component.find('input').props().value).toBe(
|
|
25
|
+
utilsToUse.format(date, utilsToUse.yearFormat)
|
|
26
|
+
);
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
describe('e2e - DatePicker default year month format', () => {
|
|
31
|
+
let component: ReactWrapper<DatePickerProps>;
|
|
32
|
+
const onChangeMock = jest.fn();
|
|
33
|
+
const date = utilsToUse.date('2018-01-01T00:00:00.000Z');
|
|
34
|
+
|
|
35
|
+
beforeEach(() => {
|
|
36
|
+
component = mount(
|
|
37
|
+
<DatePicker onChange={onChangeMock} value={date} views={['year', 'month']} />
|
|
38
|
+
);
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
it('Should use year month format by default for year & month views', () => {
|
|
42
|
+
expect(component.find('input').props().value).toBe(
|
|
43
|
+
utilsToUse.format(date, utilsToUse.yearMonthFormat)
|
|
44
|
+
);
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
describe('e2e - DatePicker default year month day format', () => {
|
|
49
|
+
let component: ReactWrapper<DatePickerProps>;
|
|
50
|
+
const onChangeMock = jest.fn();
|
|
51
|
+
const date = utilsToUse.date('2018-01-01T00:00:00.000Z');
|
|
52
|
+
|
|
53
|
+
beforeEach(() => {
|
|
54
|
+
component = mount(
|
|
55
|
+
<DatePicker onChange={onChangeMock} value={date} views={['year', 'month', 'date']} />
|
|
56
|
+
);
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
it('Should use default for year & month & day views', () => {
|
|
60
|
+
expect(component.find('input').props().value).toBe(
|
|
61
|
+
utilsToUse.format(date, utilsToUse.dateFormat)
|
|
62
|
+
);
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
describe('e2e - DatePicker inline variant', () => {
|
|
67
|
+
let component: ReactWrapper<DatePickerProps>;
|
|
68
|
+
const onChangeMock = jest.fn();
|
|
69
|
+
const onCloseMock = jest.fn();
|
|
70
|
+
const onOpenMock = jest.fn();
|
|
71
|
+
|
|
72
|
+
beforeEach(() => {
|
|
73
|
+
jest.clearAllMocks();
|
|
74
|
+
component = mount(
|
|
75
|
+
<DatePicker
|
|
76
|
+
autoOk
|
|
77
|
+
variant="inline"
|
|
78
|
+
animateYearScrolling={false}
|
|
79
|
+
onChange={onChangeMock}
|
|
80
|
+
onClose={onCloseMock}
|
|
81
|
+
onOpen={onOpenMock}
|
|
82
|
+
value={utilsToUse.date('2018-01-01T00:00:00.000Z')}
|
|
83
|
+
/>
|
|
84
|
+
);
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
it('Should renders', () => {
|
|
88
|
+
expect(component).toBeTruthy();
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
it('Should open modal with picker on click', () => {
|
|
92
|
+
component.find('input').simulate('click');
|
|
93
|
+
|
|
94
|
+
expect(component.find('WithStyles(ForwardRef(Popover))').props().open).toBeTruthy();
|
|
95
|
+
expect(onOpenMock).toHaveBeenCalled();
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
it('Should close on popover close request', () => {
|
|
99
|
+
const popoverOnClose = component
|
|
100
|
+
.find('WithStyles(ForwardRef(Popover))')
|
|
101
|
+
.prop('onClose') as () => void;
|
|
102
|
+
|
|
103
|
+
popoverOnClose();
|
|
104
|
+
|
|
105
|
+
expect(component.find('WithStyles(ForwardRef(Popover))').prop('open')).toBeFalsy();
|
|
106
|
+
expect(onCloseMock).toHaveBeenCalled();
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
it('Should dispatch onChange and close on day select', () => {
|
|
110
|
+
component.find('input').simulate('click');
|
|
111
|
+
component
|
|
112
|
+
.find('Day button')
|
|
113
|
+
.at(10)
|
|
114
|
+
.simulate('click');
|
|
115
|
+
|
|
116
|
+
expect(onChangeMock).toHaveBeenCalled();
|
|
117
|
+
expect(component.find('WithStyles(ForwardRef(Popover))').props().open).toBeFalsy();
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
describe('e2e - DatePicker without month change', () => {
|
|
122
|
+
let component: ReactWrapper<DatePickerProps>;
|
|
123
|
+
const onChangeMock = jest.fn();
|
|
124
|
+
const date = utilsToUse.date('2018-01-01T00:00:00.000Z');
|
|
125
|
+
|
|
126
|
+
beforeEach(() => {
|
|
127
|
+
component = mount(<DatePicker open onChange={onChangeMock} value={date} />);
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
it('Should not add to loading queue if callback is undefined', () => {
|
|
131
|
+
component
|
|
132
|
+
.find('CalendarHeader button')
|
|
133
|
+
.first()
|
|
134
|
+
.simulate('click');
|
|
135
|
+
expect(
|
|
136
|
+
component
|
|
137
|
+
.find('Calendar')
|
|
138
|
+
.first()
|
|
139
|
+
.state('loadingQueue')
|
|
140
|
+
).toEqual(0);
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
describe('e2e - DatePicker month change sync', () => {
|
|
145
|
+
let component: ReactWrapper<DatePickerProps>;
|
|
146
|
+
const onChangeMock = jest.fn();
|
|
147
|
+
const onMonthChangeMock = jest.fn();
|
|
148
|
+
const date = utilsToUse.date('2018-01-01T00:00:00.000Z');
|
|
149
|
+
|
|
150
|
+
beforeEach(() => {
|
|
151
|
+
component = mount(
|
|
152
|
+
<DatePicker open onChange={onChangeMock} onMonthChange={onMonthChangeMock} value={date} />
|
|
153
|
+
);
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
it('Should not add to loading queue when synchronous', () => {
|
|
157
|
+
component
|
|
158
|
+
.find('CalendarHeader button')
|
|
159
|
+
.first()
|
|
160
|
+
.simulate('click');
|
|
161
|
+
expect(
|
|
162
|
+
component
|
|
163
|
+
.find('Calendar')
|
|
164
|
+
.first()
|
|
165
|
+
.state('loadingQueue')
|
|
166
|
+
).toEqual(0);
|
|
167
|
+
});
|
|
168
|
+
});
|
|
169
|
+
|
|
170
|
+
describe('e2e - DatePicker month change async', () => {
|
|
171
|
+
let component: ReactWrapper<DatePickerProps>;
|
|
172
|
+
const onChangeMock = jest.fn();
|
|
173
|
+
|
|
174
|
+
const sleep = (ms: number) => new Promise(resolve => setTimeout(resolve, ms));
|
|
175
|
+
const promise = sleep(50);
|
|
176
|
+
const onMonthChangeAsyncMock = jest.fn(async () => {
|
|
177
|
+
await promise;
|
|
178
|
+
});
|
|
179
|
+
|
|
180
|
+
const date = utilsToUse.date('2018-01-01T00:00:00.000Z');
|
|
181
|
+
|
|
182
|
+
beforeEach(() => {
|
|
183
|
+
component = mount(
|
|
184
|
+
<DatePicker
|
|
185
|
+
open
|
|
186
|
+
onChange={onChangeMock}
|
|
187
|
+
onMonthChange={onMonthChangeAsyncMock}
|
|
188
|
+
value={date}
|
|
189
|
+
/>
|
|
190
|
+
);
|
|
191
|
+
});
|
|
192
|
+
|
|
193
|
+
it('Should add to loading queue when loading asynchronous data', () => {
|
|
194
|
+
component
|
|
195
|
+
.find('CalendarHeader button')
|
|
196
|
+
.first()
|
|
197
|
+
.simulate('click');
|
|
198
|
+
|
|
199
|
+
expect(
|
|
200
|
+
component
|
|
201
|
+
.find('Calendar')
|
|
202
|
+
.first()
|
|
203
|
+
.state('loadingQueue')
|
|
204
|
+
).toEqual(1);
|
|
205
|
+
});
|
|
206
|
+
|
|
207
|
+
it('Should empty loading queue after loading asynchronous data', async () => {
|
|
208
|
+
component
|
|
209
|
+
.find('CalendarHeader button')
|
|
210
|
+
.first()
|
|
211
|
+
.simulate('click');
|
|
212
|
+
await sleep(100);
|
|
213
|
+
expect(
|
|
214
|
+
component
|
|
215
|
+
.find('Calendar')
|
|
216
|
+
.first()
|
|
217
|
+
.state('loadingQueue')
|
|
218
|
+
).toEqual(0);
|
|
219
|
+
});
|
|
220
|
+
});
|
|
221
|
+
|
|
222
|
+
test('Custom toolbar component', () => {
|
|
223
|
+
const component = mount(
|
|
224
|
+
<DatePicker
|
|
225
|
+
open
|
|
226
|
+
value={new Date()}
|
|
227
|
+
onChange={jest.fn()}
|
|
228
|
+
ToolbarComponent={() => <div id="custom-toolbar" />}
|
|
229
|
+
/>
|
|
230
|
+
);
|
|
231
|
+
|
|
232
|
+
expect(component.find('#custom-toolbar').length).toBe(1);
|
|
233
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { mount, utilsToUse } from '../test-utils';
|
|
3
|
+
import { DatePicker } from '../../DatePicker/DatePicker';
|
|
4
|
+
|
|
5
|
+
describe('DatePicker - different props', () => {
|
|
6
|
+
it('Should not render toolbar if onlyCalendar = true', () => {
|
|
7
|
+
const component = mount(
|
|
8
|
+
<DatePicker
|
|
9
|
+
open
|
|
10
|
+
disableToolbar
|
|
11
|
+
onChange={jest.fn()}
|
|
12
|
+
value={utilsToUse.date('2018-01-01T00:00:00.000Z')}
|
|
13
|
+
/>
|
|
14
|
+
);
|
|
15
|
+
|
|
16
|
+
expect(component.find('WithStyles(PickerToolbar)').length).toBe(0);
|
|
17
|
+
});
|
|
18
|
+
});
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ReactWrapper } from 'enzyme';
|
|
3
|
+
import { clickOKButton } from './commands';
|
|
4
|
+
import { mount, utilsToUse } from '../test-utils';
|
|
5
|
+
import { DatePicker, DatePickerProps } from '../../DatePicker';
|
|
6
|
+
|
|
7
|
+
describe('e2e - DatePicker', () => {
|
|
8
|
+
let component: ReactWrapper<DatePickerProps>;
|
|
9
|
+
const onChangeMock = jest.fn();
|
|
10
|
+
|
|
11
|
+
beforeEach(() => {
|
|
12
|
+
jest.clearAllMocks();
|
|
13
|
+
component = mount(
|
|
14
|
+
<DatePicker
|
|
15
|
+
open
|
|
16
|
+
autoOk
|
|
17
|
+
openTo="date"
|
|
18
|
+
animateYearScrolling={false}
|
|
19
|
+
value={utilsToUse.date('2018-01-01T00:00:00.000Z')}
|
|
20
|
+
onChange={onChangeMock}
|
|
21
|
+
/>
|
|
22
|
+
);
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
it('Should renders', () => {
|
|
26
|
+
expect(component).toBeTruthy();
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
it('Should render proper count of days', () => {
|
|
30
|
+
expect(component.find('Day').length).toBe(35);
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
it('Should dispatch onChange on day click', () => {
|
|
34
|
+
component
|
|
35
|
+
.find('Day button')
|
|
36
|
+
.at(2)
|
|
37
|
+
.simulate('click');
|
|
38
|
+
expect(onChangeMock).toHaveBeenCalled();
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
it('Should render year selection', () => {
|
|
42
|
+
component
|
|
43
|
+
.find('ToolbarButton')
|
|
44
|
+
.first()
|
|
45
|
+
.simulate('click');
|
|
46
|
+
|
|
47
|
+
expect(component.find('Year').length).toBe(201);
|
|
48
|
+
|
|
49
|
+
component
|
|
50
|
+
.find('Year')
|
|
51
|
+
.at(1)
|
|
52
|
+
.simulate('click');
|
|
53
|
+
|
|
54
|
+
clickOKButton(component);
|
|
55
|
+
expect(onChangeMock).toHaveBeenCalled();
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
describe('e2e -- DatePicker views year', () => {
|
|
60
|
+
const onChangeMock = jest.fn();
|
|
61
|
+
const onYearChangeMock = jest.fn();
|
|
62
|
+
|
|
63
|
+
let component: ReactWrapper<DatePickerProps>;
|
|
64
|
+
|
|
65
|
+
beforeEach(() => {
|
|
66
|
+
component = mount(
|
|
67
|
+
<DatePicker
|
|
68
|
+
open
|
|
69
|
+
value={utilsToUse.date('2018-01-01T00:00:00.000Z')}
|
|
70
|
+
onChange={onChangeMock}
|
|
71
|
+
onYearChange={onYearChangeMock}
|
|
72
|
+
views={['year']}
|
|
73
|
+
/>
|
|
74
|
+
);
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
it('Should render year selection and select year', () => {
|
|
78
|
+
expect(component.find('Year').length).toBe(201);
|
|
79
|
+
|
|
80
|
+
component
|
|
81
|
+
.find('Year')
|
|
82
|
+
.at(1)
|
|
83
|
+
.simulate('click');
|
|
84
|
+
|
|
85
|
+
clickOKButton(component);
|
|
86
|
+
expect(onYearChangeMock).toHaveBeenCalled();
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
describe('e2e -- DatePicker views year and month', () => {
|
|
91
|
+
const onChangeMock = jest.fn();
|
|
92
|
+
const onMonthChangeMock = jest.fn();
|
|
93
|
+
|
|
94
|
+
let component: ReactWrapper<DatePickerProps>;
|
|
95
|
+
|
|
96
|
+
beforeEach(() => {
|
|
97
|
+
component = mount(
|
|
98
|
+
<DatePicker
|
|
99
|
+
open
|
|
100
|
+
autoOk
|
|
101
|
+
value={utilsToUse.date('2018-01-01T00:00:00.000Z')}
|
|
102
|
+
onChange={onChangeMock}
|
|
103
|
+
onMonthChange={onMonthChangeMock}
|
|
104
|
+
openTo="month"
|
|
105
|
+
views={['year', 'month']}
|
|
106
|
+
/>
|
|
107
|
+
);
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
it('Should select month', () => {
|
|
111
|
+
expect(component.find('Month').length).toBe(12);
|
|
112
|
+
component
|
|
113
|
+
.find('Month')
|
|
114
|
+
.first()
|
|
115
|
+
.simulate('click');
|
|
116
|
+
|
|
117
|
+
expect(onMonthChangeMock).toHaveBeenCalled();
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
it('Should switch to year selection and back to month', () => {
|
|
121
|
+
component
|
|
122
|
+
.find('ToolbarButton')
|
|
123
|
+
.first()
|
|
124
|
+
.simulate('click');
|
|
125
|
+
|
|
126
|
+
const year = component.find('Year');
|
|
127
|
+
expect(component.find('Year').length).toBe(201);
|
|
128
|
+
|
|
129
|
+
year.first().simulate('click');
|
|
130
|
+
expect(component.find('Month').length).toBe(12);
|
|
131
|
+
});
|
|
132
|
+
});
|
|
133
|
+
|
|
134
|
+
describe('e2e -- DatePicker views year and month open from year', () => {
|
|
135
|
+
const onChangeMock = jest.fn();
|
|
136
|
+
let component: ReactWrapper<DatePickerProps>;
|
|
137
|
+
|
|
138
|
+
beforeEach(() => {
|
|
139
|
+
component = mount(
|
|
140
|
+
<DatePicker
|
|
141
|
+
open
|
|
142
|
+
autoOk
|
|
143
|
+
value={utilsToUse.date('2018-01-01T00:00:00.000Z')}
|
|
144
|
+
onChange={onChangeMock}
|
|
145
|
+
views={['year', 'month']}
|
|
146
|
+
openTo="year"
|
|
147
|
+
/>
|
|
148
|
+
);
|
|
149
|
+
});
|
|
150
|
+
|
|
151
|
+
it('Should render year selection', () => {
|
|
152
|
+
expect(component.find('Year').length).toBe(201);
|
|
153
|
+
});
|
|
154
|
+
});
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ReactWrapper } from 'enzyme';
|
|
3
|
+
import { mount, utilsToUse } from '../test-utils';
|
|
4
|
+
import { DateTimePicker, DateTimePickerProps } from '../../DateTimePicker/DateTimePicker';
|
|
5
|
+
|
|
6
|
+
const format = process.env.UTILS === 'moment' ? 'MM/DD/YYYY HH:mm' : 'MM/dd/yyyy hh:mm';
|
|
7
|
+
|
|
8
|
+
describe('e2e - DateTimePicker', () => {
|
|
9
|
+
let component: ReactWrapper<DateTimePickerProps>;
|
|
10
|
+
|
|
11
|
+
const onCloseMock = jest.fn();
|
|
12
|
+
const onChangeMock = jest.fn();
|
|
13
|
+
|
|
14
|
+
beforeEach(() => {
|
|
15
|
+
component = mount(
|
|
16
|
+
<DateTimePicker
|
|
17
|
+
clearable
|
|
18
|
+
format={format}
|
|
19
|
+
onClose={onCloseMock}
|
|
20
|
+
onChange={onChangeMock}
|
|
21
|
+
value={utilsToUse.date('2018-01-01T00:00:00.000Z')}
|
|
22
|
+
/>
|
|
23
|
+
);
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
it('Should renders', () => {
|
|
27
|
+
expect(component).toBeTruthy();
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
it('Should open modal with picker on click', () => {
|
|
31
|
+
component.find('input').simulate('click');
|
|
32
|
+
expect(component.find('WithStyles(ForwardRef(Dialog))').prop('open')).toBeTruthy();
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
it('Should update state when passing new value from outside', () => {
|
|
36
|
+
component.setProps({ value: '2018-01-01T00:00:00.000Z' });
|
|
37
|
+
component.update(); // make additional react tick to update text field
|
|
38
|
+
|
|
39
|
+
const expectedString = utilsToUse.format(utilsToUse.date('2018-01-01T00:00:00.000Z'), format);
|
|
40
|
+
expect(component.find('input').props().value).toBe(expectedString);
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
it('Should change internal state on update', () => {
|
|
44
|
+
component.find('input').simulate('click');
|
|
45
|
+
component
|
|
46
|
+
.find('Day button')
|
|
47
|
+
.at(3)
|
|
48
|
+
.simulate('click');
|
|
49
|
+
|
|
50
|
+
expect(
|
|
51
|
+
component
|
|
52
|
+
.find('ToolbarButton')
|
|
53
|
+
.at(0)
|
|
54
|
+
.text()
|
|
55
|
+
).toBe('2018');
|
|
56
|
+
// expect(component.find('ToolbarButton').at(1).text()).toBe('Jan 3');
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
describe('e2e -- Controlling open state', () => {
|
|
61
|
+
let component: ReactWrapper<DateTimePickerProps>;
|
|
62
|
+
const onCloseMock = jest.fn();
|
|
63
|
+
|
|
64
|
+
beforeEach(() => {
|
|
65
|
+
component = mount(
|
|
66
|
+
<DateTimePicker
|
|
67
|
+
open
|
|
68
|
+
onClose={onCloseMock}
|
|
69
|
+
onChange={jest.fn()}
|
|
70
|
+
value={utilsToUse.date('2018-01-01T00:00:00.000Z')}
|
|
71
|
+
/>
|
|
72
|
+
);
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
it('Should be opened', () => {
|
|
76
|
+
expect(component.find('WithStyles(ForwardRef(Dialog))').prop('open')).toBeTruthy();
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
it('Should close', () => {
|
|
80
|
+
component
|
|
81
|
+
.find('ForwardRef(DialogActions) button')
|
|
82
|
+
.at(0)
|
|
83
|
+
.simulate('click');
|
|
84
|
+
expect(onCloseMock).toHaveBeenCalled();
|
|
85
|
+
});
|
|
86
|
+
});
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ReactWrapper } from 'enzyme';
|
|
3
|
+
import { clickOKButton } from './commands';
|
|
4
|
+
import { mount, utilsToUse, toHaveBeenCalledExceptMoment } from '../test-utils';
|
|
5
|
+
import { DateTimePicker, DateTimePickerProps } from '../../DateTimePicker/DateTimePicker';
|
|
6
|
+
|
|
7
|
+
describe('e2e - DateTimePicker', () => {
|
|
8
|
+
let component: ReactWrapper<DateTimePickerProps>;
|
|
9
|
+
const onChangeMock = jest.fn();
|
|
10
|
+
|
|
11
|
+
beforeEach(() => {
|
|
12
|
+
jest.clearAllMocks();
|
|
13
|
+
component = mount(
|
|
14
|
+
<DateTimePicker
|
|
15
|
+
open
|
|
16
|
+
value={utilsToUse.date('2018-01-01T00:00:00.000Z')}
|
|
17
|
+
onChange={onChangeMock}
|
|
18
|
+
openTo="hours"
|
|
19
|
+
leftArrowIcon="keyboard_arrow_left"
|
|
20
|
+
rightArrowIcon="keyboard_arrow_right"
|
|
21
|
+
dateRangeIcon="date_range"
|
|
22
|
+
timeIcon="access_time"
|
|
23
|
+
/>
|
|
24
|
+
);
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
it('Should renders', () => {
|
|
28
|
+
expect(component).toBeTruthy();
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
it('Should display year view', () => {
|
|
32
|
+
component
|
|
33
|
+
.find('ToolbarButton')
|
|
34
|
+
.first()
|
|
35
|
+
.simulate('click');
|
|
36
|
+
|
|
37
|
+
expect(component.find('Year').length).toBe(201);
|
|
38
|
+
component
|
|
39
|
+
.find('Year')
|
|
40
|
+
.at(1)
|
|
41
|
+
.simulate('click');
|
|
42
|
+
|
|
43
|
+
clickOKButton(component);
|
|
44
|
+
expect(onChangeMock).toHaveBeenCalled();
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
it('Should render hour view', () => {
|
|
48
|
+
component
|
|
49
|
+
.find('ToolbarButton')
|
|
50
|
+
.at(2)
|
|
51
|
+
.simulate('click');
|
|
52
|
+
expect(component.find('TimePickerView').props().type).toBe('hours');
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
it('Should render minutes view', () => {
|
|
56
|
+
component
|
|
57
|
+
.find('ToolbarButton')
|
|
58
|
+
.at(3)
|
|
59
|
+
.simulate('click');
|
|
60
|
+
expect(component.find('TimePickerView').props().type).toBe('minutes');
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
it('Should change meridiem', () => {
|
|
64
|
+
component
|
|
65
|
+
.find('ToolbarButton')
|
|
66
|
+
.at(5)
|
|
67
|
+
.simulate('click');
|
|
68
|
+
|
|
69
|
+
clickOKButton(component);
|
|
70
|
+
toHaveBeenCalledExceptMoment(onChangeMock, [utilsToUse.date('2018-01-01T12:00:00.000Z')]);
|
|
71
|
+
});
|
|
72
|
+
});
|