Skip to content

Commit 613e5e8

Browse files
committed
Fix dummy test
1 parent 3f83eff commit 613e5e8

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

src/views/Dashboard.vue

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@ export default {
4141
DashboardCardNumber
4242
},
4343
44-
props: {
45-
msg: String
46-
},
47-
4844
data: () => ({
4945
//
5046
})

src/views/Servers.vue

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
<template>
2-
<h1>Servidores</h1>
2+
<h1>Servidores {{ msg }}</h1>
33
</template>
44

55
<script>
66
export default {
7-
name: 'Servers'
7+
name: 'Servers',
8+
9+
props: {
10+
msg: String
11+
},
12+
13+
data: () => ({
14+
//
15+
})
816
}
917
</script>
1018

tests/unit/example.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { shallowMount } from '@vue/test-utils'
2-
import Dashboard from '@/views/Dashboard.vue'
2+
import Servers from '@/views/Servers.vue'
33

4-
describe('Dashboard.vue', () => {
4+
describe('Servers.vue', () => {
55
it('renders props.msg when passed', () => {
66
const msg = 'new message'
7-
const wrapper = shallowMount(Dashboard, {
7+
const wrapper = shallowMount(Servers, {
88
propsData: { msg }
99
})
1010
expect(wrapper.text()).toMatch(msg)

0 commit comments

Comments
 (0)