Skip to content

Commit f265958

Browse files
authored
Merge pull request #25 from sigfriedCub1990/master
[FIX] Unit test coverage.
2 parents 43ba8ba + 45b66fe commit f265958

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Vue_Starter/src/views/Dashboard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class="animated fadeIn">
3-
Hello World
3+
<p class="text-info">Hello World</p>
44
</div>
55
</template>
66

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import Vue from 'vue'
2-
import Hello from '@/components/Hello'
2+
import Dashboard from '@/views/Dashboard'
33

4-
describe('Hello.vue', () => {
4+
describe('Dashboard.vue', () => {
55
it('should render correct contents', () => {
6-
const Constructor = Vue.extend(Hello)
6+
const Constructor = Vue.extend(Dashboard)
77
const vm = new Constructor().$mount()
8-
expect(vm.$el.querySelector('.hello h1').textContent)
9-
.to.equal('Welcome to Your Vue.js App')
8+
expect(vm.$el.querySelector('.text-info').textContent)
9+
.to.equal('Hello World')
1010
})
1111
})

0 commit comments

Comments
 (0)