mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 18:14:13 +00:00
手机端样式细节调整,补充测试用例 (#3)
* unit test * picker and dialog unit tes * fix:quantity and loading
This commit is contained in:
@@ -46,4 +46,15 @@ describe('Popup', () => {
|
||||
|
||||
expect(wrapper.data().currentValue).to.be.true;
|
||||
});
|
||||
|
||||
it('create a popup-fade transition popup', () => {
|
||||
wrapper = mount(Popup, {
|
||||
propsData: {
|
||||
transition: 'popup-fade'
|
||||
}
|
||||
});
|
||||
|
||||
expect(wrapper.hasClass('van-popup')).to.be.true;
|
||||
expect(wrapper.instance().currentTransition).to.equal('popup-fade');
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user