Hello.spec.js 335 B

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