unit test: picker (#20)

* pick unit test
This commit is contained in:
张敏
2017-04-26 17:06:02 +08:00
committed by GitHub
parent b4544ef1dc
commit e239b9937d
4 changed files with 24 additions and 13 deletions

View File

@@ -18,6 +18,18 @@ describe('Field', () => {
expect(wrapper.hasClass('van-field')).to.be.true;
});
it('create a border field', () => {
wrapper = mount(Field, {
propsData: {
type: 'text',
border: true
}
});
expect(wrapper.hasClass('van-field')).to.be.true;
expect(wrapper.hasClass('van-field--border')).to.be.true;
});
it('create a text field with initialize value', (done) => {
wrapper = mount(Field, {
propsData: {