Skip to content

Commit ea982d4

Browse files
committed
chore: lint
1 parent ccab542 commit ea982d4

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

docs/api/wrapper/find.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ expect(byId.element.id).toBe('bar')
3131
- You may chain `find` calls together:
3232

3333
```js
34-
let button
35-
36-
button = wrapper.find({ ref: 'testButton' })
34+
const button = wrapper.find({ ref: 'testButton' })
3735
expect(button.find('.icon').exists()).toBe(true)
3836
```
3937

docs/api/wrapper/findComponent.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ import Bar from './Bar.vue'
1717

1818
const wrapper = mount(Foo)
1919

20-
const bar = wrapper.findComponent(Bar) //=> finds Bar by component instance
20+
const bar = wrapper.findComponent(Bar) // => finds Bar by component instance
2121
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`
2323
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`
2525
expect(barRef.exists()).toBe(true)
2626
```

0 commit comments

Comments
 (0)