[Improvement] Checkbox: remove unnecessary DOM (#636)

This commit is contained in:
neverland
2018-02-12 10:35:20 +08:00
committed by GitHub
parent 24a50034b6
commit 9673da4131
6 changed files with 93 additions and 145 deletions

View File

@@ -185,7 +185,7 @@ describe('Checkbox', () => {
});
expect(wrapper.hasClass('van-checkbox')).to.be.true;
expect(wrapper.hasClass('van-checkbox--disabled')).to.be.true;
expect(wrapper.find('.van-checkbox--disabled').length).to.equal(1);
expect(wrapper.vm.currentValue).to.be.false;
expect(wrapper.vm.isDisabled).to.be.true;