File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" hello" >
3
- <click-me-button ></click-me-button >
3
+ <click-me-button message = " Increment counter " ></click-me-button >
4
4
<div class =" counter" >{{ counter }}</div >
5
5
<h1 >{{ msg }}</h1 >
6
6
<h2 >Essential Links</h2 >
Original file line number Diff line number Diff line change @@ -60,4 +60,13 @@ describe('Hello.vue', () => {
60
60
const clickMeButton = vm . $options . components . ClickMeButton
61
61
expect ( clickMeButton ) . to . contain ( ClickMeButton )
62
62
} )
63
+
64
+ it ( 'should define a message to put inside the clickMeButton' , ( ) => {
65
+ expect ( vm . $options . components . ClickMeButton . props ) . to . haveOwnProperty ( 'message' )
66
+ } )
67
+
68
+ it ( 'should verify textContent of the Click Me Button' , ( ) => {
69
+ expect ( vm . $el . querySelector ( '.clickMeButton button' ) . textContent )
70
+ . to . equal ( 'Increment counter' )
71
+ } )
63
72
} )
You can’t perform that action at this time.
0 commit comments