Skip to content

Commit f5d9523

Browse files
committed
docs: lint
1 parent 0033c4a commit f5d9523

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

docs/.eslintrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"MyPlugin": true
1414
},
1515
"rules": {
16-
"no-unused-vars": 0
16+
"no-unused-vars": 0,
17+
"no-undef": 0
1718
}
1819
}

docs/en/api/wrapper/emitted.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Return an object containing custom events emitted by the `Wrapper` `vm`.
1010
import { mount } from 'vue-test-utils'
1111
import { expect } from 'chai'
1212

13-
const wrapper = mount(Foo)
13+
const wrapper = mount(Component)
1414

1515
wrapper.vm.$emit('foo')
1616
wrapper.vm.$emit('foo', 123)

docs/en/api/wrapper/emittedByOrder.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Return an Array containing custom events emitted by the `Wrapper` `vm`.
1010
import { mount } from 'vue-test-utils'
1111
import { expect } from 'chai'
1212

13-
const wrapper = mount(Foo)
13+
const wrapper = mount(Component)
1414

1515
wrapper.vm.$emit('foo')
1616
wrapper.vm.$emit('bar', 123)

docs/en/guides/common-tips.md

-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ wrapper.vm // the mounted Vue instance
3232
Each mounted wrapper automatically records all events emitted by the underlying Vue instance. You can retrieve the recorded events using the `wrapper.emitted()` method:
3333

3434
``` js
35-
const wrapper = mount(Foo)
36-
3735
wrapper.vm.$emit('foo')
3836
wrapper.vm.$emit('foo', 123)
3937

0 commit comments

Comments
 (0)