File tree Expand file tree Collapse file tree 3 files changed +13
-9
lines changed
Expand file tree Collapse file tree 3 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -41,10 +41,6 @@ export default {
4141 DashboardCardNumber
4242 },
4343
44- props: {
45- msg: String
46- },
47-
4844 data : () => ({
4945 //
5046 })
Original file line number Diff line number Diff line change 11<template >
2- <h1 >Servidores</h1 >
2+ <h1 >Servidores {{ msg }} </h1 >
33</template >
44
55<script >
66export default {
7- name: ' Servers'
7+ name: ' Servers' ,
8+
9+ props: {
10+ msg: String
11+ },
12+
13+ data : () => ({
14+ //
15+ })
816}
917 </script >
1018
Original file line number Diff line number Diff line change 11import { 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 )
You can’t perform that action at this time.
0 commit comments