Files
mes-ui-d2/tests/unit/HelloWorld.spec.js
liyang 84228d7b1a 优化
Former-commit-id: 643135960ae3f64d7ed5688f06c546292bc14602 [formerly 643135960ae3f64d7ed5688f06c546292bc14602 [formerly 643135960ae3f64d7ed5688f06c546292bc14602 [formerly 643135960ae3f64d7ed5688f06c546292bc14602 [formerly 970b3653b9d1a74198f1496a1136ba24bf3ab19a [formerly edc7c93a468b5c88ce0ff9185316d330f9fbb901]]]]]
Former-commit-id: d28d0ed8fdb55cbfa933acd2cc9e4639d7044399
Former-commit-id: 84ba79066805141c338f568a694fd5b02cdaac07
Former-commit-id: b7293360cf6c7f0e8a2f8ea365e84f925c64bbd8 [formerly f2f0e92e2b173d98c47996cbb15d9389916d5684]
Former-commit-id: fc473de19005539ab245c7e408201c1ff70d2030
Former-commit-id: 69d530327a843a948af10938e830bff378980a03
Former-commit-id: cebb6d4bcf92cff4d8f248a2ffa0d785cdff73ce
Former-commit-id: 92e15a2234ee0cb2cb89fb9d8f9e5052fcc817cb
Former-commit-id: 90e6816cae2e258e35b01bbc4f58d107079cf0ba
2018-07-20 09:52:09 +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)
})
})