从完整版转移

Former-commit-id: d164dbcc7f4a728304b1683d763d45fdebca8170
This commit is contained in:
liyang
2018-10-30 19:53:02 +08:00
parent e24098b148
commit 08b63fa6b9
633 changed files with 63788 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
module.exports = {
env: {
jest: true
},
rules: {
'import/no-extraneous-dependencies': 'off'
}
}
+14
View File
@@ -0,0 +1,14 @@
// 暂时 D2 没有单元测试代码 此文件为自动生成
import { shallowMount } from '@vue/test-utils'
import HelloWorld from '@/components/HelloWorld.vue'
describe('HelloWorld.vue', () => {
it('renders props.msg when passed', () => {
const msg = 'new message'
const wrapper = shallowMount(HelloWorld, {
propsData: { msg }
})
expect(wrapper.text()).toMatch(msg)
})
})