mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 01:17:15 +00:00
feat: add tests
This commit is contained in:
@@ -1,16 +1,17 @@
|
||||
import { createVue } from '../creater';
|
||||
import CellGroup from 'packages/cell-group';
|
||||
import { mount } from 'avoriaz';
|
||||
|
||||
describe('Cell', () => {
|
||||
let vm;
|
||||
describe('CellGroup', () => {
|
||||
let wrapper;
|
||||
afterEach(() => {
|
||||
vm && vm.destroy();
|
||||
wrapper && wrapper.destroy();
|
||||
});
|
||||
|
||||
it('cell group create', () => {
|
||||
vm = createVue(CellGroup);
|
||||
vm.mount();
|
||||
it('create', () => {
|
||||
wrapper = mount(CellGroup, {
|
||||
propsData: {}
|
||||
});
|
||||
|
||||
expect(vm.el.classList.contains('zan-cell-group')).to.true;
|
||||
expect(wrapper.hasClass('zan-cell-group')).to.be.true;
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user