vue3.0 init

This commit is contained in:
xiaoxian521
2020-11-16 22:44:09 +08:00
parent 9bdbf56ec0
commit a6d76a34fa
28 changed files with 17480 additions and 14 deletions

View File

@@ -0,0 +1,12 @@
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, {
props: { msg }
})
expect(wrapper.text()).toMatch(msg)
})
})