修改过页面
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
354 B

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