vant components

This commit is contained in:
cookfront
2017-04-19 17:33:44 +08:00
commit 63c549d651
346 changed files with 25710 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
import Card from 'packages/card';
import { mount } from 'avoriaz';
describe('Card', () => {
let wrapper;
afterEach(() => {
wrapper && wrapper.destroy();
});
it('create', () => {
wrapper = mount(Card, {
propsData: {
thumb: 'thumb'
}
});
expect(wrapper.hasClass('van-card')).to.be.true;
});
});