D2Admin 1.7

Former-commit-id: 3010ce31114fdc121006451c72f9e18306239fd2
This commit is contained in:
liyang
2019-05-07 09:26:18 +08:00
parent 46bc6ca451
commit d07d15ed8c
952 changed files with 171232 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
import { mount } from '@vue/test-utils'
import D2IconSvg from '@/components/d2-icon-svg/index.vue'
describe('d2-icon-svg', () => {
// 存在且是Vue组件实例
it('is a vue instance', () => {
const wrapper = mount(D2IconSvg, {
propsData: {
name: 'add'
}
})
expect(wrapper.exists()).toBeTruthy()
expect(wrapper.isVueInstance()).toBeTruthy()
})
// props
it('has props', () => {
const wrapper = mount(D2IconSvg, {
propsData: {
name: 'add'
}
})
expect(wrapper.props().name).toEqual('add')
})
})