mirror of https://github.com/ElemeFE/element
DatePicker: fix test
parent
6cb4981d55
commit
42168ccb89
|
@ -411,7 +411,10 @@ describe('DatePicker', () => {
|
|||
|
||||
setTimeout(_ => {
|
||||
const { minDate, maxDate } = vm.picker;
|
||||
expect(maxDate - minDate).to.equal(2678400000); // one month
|
||||
const minMonth = minDate.getMonth();
|
||||
const maxMonth = maxDate.getMonth();
|
||||
|
||||
expect(maxMonth - minMonth).to.equal(1); // one month
|
||||
done();
|
||||
}, DELAY);
|
||||
}, DELAY);
|
||||
|
|
Loading…
Reference in New Issue