File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -31,9 +31,7 @@ expect(byId.element.id).toBe('bar')
31
31
- You may chain ` find ` calls together:
32
32
33
33
``` js
34
- let button
35
-
36
- button = wrapper .find ({ ref: ' testButton' })
34
+ const button = wrapper .find ({ ref: ' testButton' })
37
35
expect (button .find (' .icon' ).exists ()).toBe (true )
38
36
```
39
37
Original file line number Diff line number Diff line change @@ -17,10 +17,10 @@ import Bar from './Bar.vue'
17
17
18
18
const wrapper = mount (Foo)
19
19
20
- const bar = wrapper .findComponent (Bar) // => finds Bar by component instance
20
+ const bar = wrapper .findComponent (Bar) // => finds Bar by component instance
21
21
expect (bar .exists ()).toBe (true )
22
- const barByName = wrapper .findComponent ({ name: ' bar' }) // => finds Bar by `name`
22
+ const barByName = wrapper .findComponent ({ name: ' bar' }) // => finds Bar by `name`
23
23
expect (barByName .exists ()).toBe (true )
24
- const barRef = wrapper .findComponent ({ ref: ' bar' }) // => finds Bar by `ref`
24
+ const barRef = wrapper .findComponent ({ ref: ' bar' }) // => finds Bar by `ref`
25
25
expect (barRef .exists ()).toBe (true )
26
26
```
You can’t perform that action at this time.
0 commit comments