From 45b66fe416e401cf3f02f7a6276e76259a11b96c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Salvador=20Garc=C3=ADa=20San=20Juan?= Date: Thu, 2 Nov 2017 12:07:52 -0400 Subject: [PATCH] [FIX] Unit test coverage. --- Vue_Starter/src/views/Dashboard.vue | 2 +- Vue_Starter/test/unit/specs/Hello.spec.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Vue_Starter/src/views/Dashboard.vue b/Vue_Starter/src/views/Dashboard.vue index 270ba695..9f2c5199 100644 --- a/Vue_Starter/src/views/Dashboard.vue +++ b/Vue_Starter/src/views/Dashboard.vue @@ -1,6 +1,6 @@ diff --git a/Vue_Starter/test/unit/specs/Hello.spec.js b/Vue_Starter/test/unit/specs/Hello.spec.js index 80140baa..ca3ad740 100644 --- a/Vue_Starter/test/unit/specs/Hello.spec.js +++ b/Vue_Starter/test/unit/specs/Hello.spec.js @@ -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') }) })