mirror of
https://github.com/youzan/vant.git
synced 2025-10-17 00:14:18 +00:00
component unit test
This commit is contained in:
16
test/unit/specs/cell.spec.js
Normal file
16
test/unit/specs/cell.spec.js
Normal 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;
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user