File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ import Foo from './Foo.vue'
38
38
describe (' Foo' , () => {
39
39
it (' renders a div' , async () => {
40
40
const wrapper = await render (Foo)
41
- expect (wrapper .text ()).toContain (' <div></div>' )
41
+ expect (wrapper .html ()).toContain (' <div></div>' )
42
42
})
43
43
})
44
44
```
@@ -56,7 +56,7 @@ describe('Foo', () => {
56
56
color: ' red'
57
57
}
58
58
})
59
- expect (wrapper .text ()).toContain (' red' )
59
+ expect (wrapper .html ()).toContain (' red' )
60
60
})
61
61
})
62
62
```
@@ -78,7 +78,7 @@ describe('Foo', () => {
78
78
foo: ' <div />'
79
79
}
80
80
})
81
- expect (wrapper .text ()).toContain (' <div></div>' )
81
+ expect (wrapper .html ()).toContain (' <div></div>' )
82
82
})
83
83
})
84
84
```
@@ -97,7 +97,7 @@ describe('Foo', () => {
97
97
$route
98
98
}
99
99
})
100
- expect (wrapper .text ()).toContain ($route .path )
100
+ expect (wrapper .html ()).toContain ($route .path )
101
101
})
102
102
})
103
103
```
You can’t perform that action at this time.
0 commit comments