component unit test

This commit is contained in:
cookfront
2017-03-10 16:07:36 +08:00
parent 56fe6b5704
commit 66db79484d
5 changed files with 84 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import { createVue } from '../creater';
import CellGroup from 'packages/cell-group';
describe('Cell', () => {
let vm;
afterEach(() => {
vm && vm.destroy();
});
it('cell group create', () => {
vm = createVue(CellGroup);
vm.mount();
expect(vm.el.classList.contains('zan-cell-group')).to.true;
});
});