Merge pull request #25 from sigfriedCub1990/master

[FIX] Unit test coverage.
This commit is contained in:
xidedix
2017-11-10 15:03:31 +01:00
committed by GitHub
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
<template> <template>
<div class="animated fadeIn"> <div class="animated fadeIn">
Hello World <p class="text-info">Hello World</p>
</div> </div>
</template> </template>
+5 -5
View File
@@ -1,11 +1,11 @@
import Vue from 'vue' 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', () => { it('should render correct contents', () => {
const Constructor = Vue.extend(Hello) const Constructor = Vue.extend(Dashboard)
const vm = new Constructor().$mount() const vm = new Constructor().$mount()
expect(vm.$el.querySelector('.hello h1').textContent) expect(vm.$el.querySelector('.text-info').textContent)
.to.equal('Welcome to Your Vue.js App') .to.equal('Hello World')
}) })
}) })