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