Skip to content

Commit 23d3d3e

Browse files
committed
docs: Fix missing whitespace
1 parent 8bd62b5 commit 23d3d3e

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

docs/api/index.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1152,7 +1152,7 @@ const wrapper = mount(Foo)
11521152
// doesn't work! You get a wrapper, but since there is not
11531153
// associated Vue instance, you cannot use methods like
11541154
// exists() and text()
1155-
wrapper.findComponent(Foo)
1155+
wrapper.findComponent(Foo)
11561156
```
11571157
11581158
For tests using functional component, consider using `get` or `find` and treating them like standard DOM nodes.
@@ -1445,7 +1445,7 @@ const wrapper = mount(Foo)
14451445
// doesn't work! You get a wrapper, but since there is not
14461446
// associated Vue instance, you cannot use methods like
14471447
// exists() and text()
1448-
wrapper.findComponent(Foo)
1448+
wrapper.findComponent(Foo)
14491449
```
14501450
14511451
For tests using functional component, consider using `get` or `find` and treating them like standard DOM nodes.
@@ -1830,7 +1830,8 @@ Check out [Making HTTP requests](../guide/advanced/http-requests.md) to see an e
18301830
```ts
18311831
type GlobalMountOptions = {
18321832
plugins?: (Plugin | [Plugin, ...any[]])[]
1833-
config?: Partial<Omit<AppConfig, 'isNativeTag'>> mixins?: ComponentOptions[]
1833+
config?: Partial<Omit<AppConfig, 'isNativeTag'>>
1834+
mixins?: ComponentOptions[]
18341835
mocks?: Record<string, any>
18351836
provide?: Record<any, any>
18361837
components?: Record<string, Component | object>
@@ -1844,7 +1845,9 @@ type GlobalMountOptions = {
18441845
18451846
Instead of configuring global mounting options on a per-test basis, you can configure them globally. These will be used by default every time you `mount` a component. You can then override the defaults via mounting options.
18461847
1847-
An example might be globally mocking the `$t` variable from vue-i18n, globally stubbing out a component, or any other global item:
1848+
**Example:**
1849+
1850+
An example might be globally mocking the `$t` variable from vue-i18n and a component:
18481851
18491852
`Component.vue`:
18501853
@@ -1883,7 +1886,7 @@ config.global.mocks = {
18831886
$t: (text) => text
18841887
}
18851888

1886-
test('config.global', () => {
1889+
test('config.global mocks and stubs', () => {
18871890
const wrapper = mount(Component)
18881891

18891892
expect(wrapper.html()).toBe('<p>message</p><div>My component</div>')

0 commit comments

Comments
 (0)