手机端样式细节调整,补充测试用例 (#3)

* unit test

* picker and dialog unit tes

* fix:quantity and loading
This commit is contained in:
张敏
2017-04-21 21:25:40 +08:00
committed by GitHub
parent 54f0cf7195
commit c71cb3f2fd
16 changed files with 268 additions and 18 deletions

View File

@@ -75,6 +75,9 @@ describe('ActionSheet', () => {
callback: () => {
called = true;
}
},
{
name: '微信'
}
]
}
@@ -83,6 +86,9 @@ describe('ActionSheet', () => {
const actionItem = wrapper.find('.van-actionsheet__item')[0];
actionItem.simulate('click');
expect(called).to.be.true;
const secondActionItem = wrapper.find('.van-actionsheet__item')[1];
secondActionItem.simulate('click');
});
it('create actionsheet with cancel button', () => {