Checkbox: support different shape

This commit is contained in:
陈嘉涵
2017-09-20 20:10:47 +08:00
parent d763910f78
commit 9d31eca15f
7 changed files with 209 additions and 186 deletions

View File

@@ -88,6 +88,18 @@ describe('Checkbox', () => {
expect(wrapper.vm.isChecked).to.be.true;
});
it('create a checkbox with name', () => {
wrapper = mount(Checkbox, {
propsData: {
name: 'a',
disabled: false
}
});
expect(wrapper.hasClass('van-checkbox')).to.be.true;
expect(!!wrapper.vm.isChecked).to.be.false;
});
it('create a not boolean value checkbox', (done) => {
wrapper = mount(Checkbox, {
propsData: {