Commit 42168ccb authored by qingwei.li's avatar qingwei.li

DatePicker: fix test

parent 6cb4981d
...@@ -411,7 +411,10 @@ describe('DatePicker', () => { ...@@ -411,7 +411,10 @@ describe('DatePicker', () => {
setTimeout(_ => { setTimeout(_ => {
const { minDate, maxDate } = vm.picker; 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(); done();
}, DELAY); }, DELAY);
}, DELAY); }, DELAY);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment