@@ -27,7 +27,7 @@ import Foo from './Foo.vue'
2727describe (' Foo' , () => {
2828 it (' renders a div' , () => {
2929 const wrapper = mount (Foo)
30- expect (wrapper .contains (' div' )).to . equal (true )
30+ expect (wrapper .contains (' div' )).toBe (true )
3131 })
3232})
3333```
@@ -45,7 +45,7 @@ describe('Foo', () => {
4545 color: ' red'
4646 }
4747 })
48- expect (wrapper .hasProp (' color' , ' red' )).to . equal (true )
48+ expect (wrapper .hasProp (' color' , ' red' )).toBe (true )
4949 })
5050})
5151```
@@ -62,7 +62,7 @@ describe('Foo', () => {
6262 const wrapper = mount (Foo, {
6363 attachToDocument: true
6464 })
65- expect (wrapper .contains (' div' )).to . equal (true )
65+ expect (wrapper .contains (' div' )).toBe (true )
6666 })
6767})
6868```
@@ -84,7 +84,7 @@ describe('Foo', () => {
8484 foo: ' <div />'
8585 }
8686 })
87- expect (wrapper .contains (' div' )).to . equal (true )
87+ expect (wrapper .contains (' div' )).toBe (true )
8888 })
8989})
9090```
@@ -104,7 +104,7 @@ describe('Foo', () => {
104104 $route
105105 }
106106 })
107- expect (wrapper .vm .$route .path ).to . equal ($route .path )
107+ expect (wrapper .vm .$route .path ).toBe ($route .path )
108108 })
109109})
110110```
@@ -127,8 +127,8 @@ describe('Foo', () => {
127127 FooBar: Faz
128128 }
129129 })
130- expect (wrapper .contains (' .stubbed' )).to . equal (true )
131- expect (wrapper .contains (Bar)).to . equal (true )
130+ expect (wrapper .contains (' .stubbed' )).toBe (true )
131+ expect (wrapper .contains (Bar)).toBe (true )
132132 })
133133})
134134```
0 commit comments