chen_xi
2022-05-30 83e7d9b7d16c6378256e707e698e5e410841d5de
1
2
3
4
5
6
7
8
9
10
11
import Vue from 'vue'
import HelloWorld from '@/components/HelloWorld'
 
describe('HelloWorld.vue', () => {
  it('should render correct contents', () => {
    const Constructor = Vue.extend(HelloWorld)
    const vm = new Constructor().$mount()
    expect(vm.$el.querySelector('.hello h1').textContent)
      .toEqual('Welcome to Your Vue.js App')
  })
})