all files / example/test/unit/specs/ Hello.spec.js

100% Statements 5/5
100% Branches 0/0
100% Functions 2/2
100% Lines 5/5
1 2 3 4 5 6 7 8 9 10 11 12             
import Vue from 'vue'
import App from '@/App'
 
describe('App.vue', () => {
  it('should render app', () => {
    const Constructor = Vue.extend(App)
    const vm = new Constructor().$mount()
    expect(vm.$el.querySelector('.brand h1').textContent)
      .to.equal('Vue-Snotify')
  })
})