Commit a290d770 authored by 杨奕's avatar 杨奕 Committed by GitHub

Merge pull request #761 from QingWei-Li/fix/date-picker-test

DatePicker: fix test
parents 6cb4981d 42168ccb
......@@ -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);
......
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