|
|
@@ -5,10 +5,13 @@ import Vue from 'vue';
|
|
|
|
|
|
describe('Icon.vue', () => {
|
|
|
const wrapper = shallowMount(Icon, {
|
|
|
+ propsData: {
|
|
|
+ type: 'top'
|
|
|
+ }
|
|
|
});
|
|
|
|
|
|
it('图标展示', () => {
|
|
|
- wrapper.setProps({ type: 'top' });
|
|
|
+ //wrapper.setProps({ type: 'top' });
|
|
|
|
|
|
return Vue.nextTick().then(function () {
|
|
|
expect(wrapper.contains('.nut-icon-top')).toBe(true);
|