mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 18:54:24 +00:00
component unit test
This commit is contained in:
16
test/unit/specs/checkbox.spec.js
Normal file
16
test/unit/specs/checkbox.spec.js
Normal file
@@ -0,0 +1,16 @@
|
||||
import { createVue } from '../creater';
|
||||
import Checkbox from 'packages/checkbox';
|
||||
|
||||
describe('Checkbox', () => {
|
||||
let vm;
|
||||
afterEach(() => {
|
||||
vm && vm.destroy();
|
||||
});
|
||||
|
||||
it('create', () => {
|
||||
vm = createVue(Checkbox);
|
||||
vm.mount();
|
||||
|
||||
expect(vm.el.classList.contains('zan-checkbox')).to.true;
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user