Files
d2-admin-start-kit/tests/unit/HelloWorld.spec.js
T
liyang 0b058339ab 减少不必要的代码
Former-commit-id: 8c704c1c9e29c1f8887eb3b899977b35b8a5e4bd
2018-07-25 10:50:19 +08:00

15 lines
403 B
JavaScript

// 暂时 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)
})
})