Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit45b66fe

Browse files
[FIX] Unit test coverage.
1 parent43ba8ba commit45b66fe

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
<divclass="animated fadeIn">
3-
Hello World
3+
<pclass="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
importVuefrom'vue'
2-
importHellofrom'@/components/Hello'
2+
importDashboardfrom'@/views/Dashboard'
33

4-
describe('Hello.vue',()=>{
4+
describe('Dashboard.vue',()=>{
55
it('should render correct contents',()=>{
6-
constConstructor=Vue.extend(Hello)
6+
constConstructor=Vue.extend(Dashboard)
77
constvm=newConstructor().$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)

[8]ページ先頭

©2009-2025 Movatter.jp