[FIX] Unit test coverage.

This commit is contained in:
Rubén Salvador García San Juan
2017-11-02 12:07:52 -04:00
parent 43ba8ba4fe
commit 45b66fe416
2 changed files with 6 additions and 6 deletions
+5 -5
View File
@@ -1,11 +1,11 @@
import Vue from 'vue'
import Hello from '@/components/Hello'
import Dashboard from '@/views/Dashboard'
describe('Hello.vue', () => {
describe('Dashboard.vue', () => {
it('should render correct contents', () => {
const Constructor = Vue.extend(Hello)
const Constructor = Vue.extend(Dashboard)
const vm = new Constructor().$mount()
expect(vm.$el.querySelector('.hello h1').textContent)
.to.equal('Welcome to Your Vue.js App')
expect(vm.$el.querySelector('.text-info').textContent)
.to.equal('Hello World')
})
})