[Improvement] more component use bem mixin (#932)

This commit is contained in:
neverland
2018-04-24 23:33:51 +08:00
committed by GitHub
parent 91163b2f14
commit c012a65ba3
23 changed files with 110 additions and 119 deletions

View File

@@ -260,7 +260,7 @@ describe('PickerColumn', () => {
}
});
expect(wrapper.find('.van-picker-column--disabled').length).to.equal(1);
expect(wrapper.find('.van-picker-column__item--disabled').length).to.equal(1);
expect(wrapper.vm.currentIndex).to.equal(undefined);
});

View File

@@ -84,7 +84,7 @@ describe('Popup', () => {
modal.click();
setTimeout(() => {
expect(wrapper.data().currentValue).to.be.false;
expect(wrapper.vm.value).to.be.false;
done();
}, 300);
}, 300);

View File

@@ -87,7 +87,7 @@ describe('Search', () => {
const eventStub = sinon.stub(wrapper.vm, '$emit');
const cancelBtn = wrapper.find('.van-search__action-text')[0];
const cancelBtn = wrapper.find('.van-search__cancel')[0];
cancelBtn.trigger('click');
wrapper.vm.$nextTick(() => {