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

DatePicker: fix test
pull/763/head
杨奕 2016-11-01 10:39:04 +08:00 committed by GitHub
commit a290d77016
1 changed files with 4 additions and 1 deletions

View File

@ -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);