mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
22 lines
380 B
JavaScript
22 lines
380 B
JavaScript
import Tag from 'packages/tag';
|
|
import { mount } from 'avoriaz';
|
|
|
|
describe('Tag', () => {
|
|
let wrapper;
|
|
afterEach(() => {
|
|
wrapper && wrapper.destroy();
|
|
});
|
|
|
|
it('create without typeProps', () => {
|
|
wrapper = mount(Tag);
|
|
});
|
|
|
|
it('create with right typeProps', () => {
|
|
wrapper = mount(Tag, {
|
|
propsData: {
|
|
type: 'primary'
|
|
}
|
|
});
|
|
});
|
|
});
|