fix(Calendar): incorrect month title after auto scroll (#5569)

This commit is contained in:
neverland
2020-01-14 10:52:39 +08:00
committed by GitHub
parent 25574aab72
commit 2047db68d9
3 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -419,7 +419,7 @@ test('should scroll to current month when show', async done => {
});
Element.prototype.scrollIntoView = function() {
expect(this).toEqual(wrapper.findAll('.van-calendar__month').at(3).element);
expect(this.parentNode).toEqual(wrapper.findAll('.van-calendar__month').at(3).element);
done();
};