|
@ -5,6 +5,7 @@ import customParseFormat from 'dayjs/plugin/customParseFormat'; |
|
|
import MockDate from 'mockdate'; |
|
|
import MockDate from 'mockdate'; |
|
|
import DatePicker from '..'; |
|
|
import DatePicker from '..'; |
|
|
import focusTest from '../../../tests/shared/focusTest'; |
|
|
import focusTest from '../../../tests/shared/focusTest'; |
|
|
|
|
|
import 'dayjs/locale/mk'; // to test local in 'prop locale should works' test case
|
|
|
|
|
|
|
|
|
dayjs.extend(customParseFormat); |
|
|
dayjs.extend(customParseFormat); |
|
|
|
|
|
|
|
@ -213,9 +214,7 @@ describe('DatePicker', () => { |
|
|
}, |
|
|
}, |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
const wrapper = mount( |
|
|
const wrapper = mount(<DatePicker.RangePicker defaultValue={dayjs()} placement="bottomLeft" />); |
|
|
<DatePicker.RangePicker defaultValue={moment()} placement="bottomLeft" />, |
|
|
|
|
|
); |
|
|
|
|
|
expect(wrapper.find('Trigger').prop('popupAlign')).toEqual(popupAlignDefault(['tl', 'bl'])); |
|
|
expect(wrapper.find('Trigger').prop('popupAlign')).toEqual(popupAlignDefault(['tl', 'bl'])); |
|
|
wrapper.setProps({ |
|
|
wrapper.setProps({ |
|
|
placement: 'bottomRight', |
|
|
placement: 'bottomRight', |
|
|