Skip to content

Commit b4dcac5

Browse files
committed
refactor: more name changes
1 parent b9b0aa9 commit b4dcac5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/en/guides/common-tips.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ mount(Component, {
7878

7979
## Mocking Injections
8080

81-
Another strategy for injected properties is simply mocking them. You can do that with the `intercept` option:
81+
Another strategy for injected properties is simply mocking them. You can do that with the `mocks` option:
8282

8383
```js
8484
import { mount } from 'vue-test-utils'
@@ -91,7 +91,7 @@ const $route = {
9191
}
9292

9393
mount(Component, {
94-
intercept: {
94+
mocks: {
9595
$route // adds the mocked $route object to the Vue instance before mounting component
9696
}
9797
})

types/test/mount.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ mount<ClassComponent>(ClassComponent, {
2626
attachToDocument: true,
2727
clone: true,
2828
localVue,
29-
intercept: {
29+
mocks: {
3030
$store: store
3131
},
3232
slots: {

types/test/shallow.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ shallow<ClassComponent>(ClassComponent, {
2626
attachToDocument: true,
2727
clone: true,
2828
localVue,
29-
intercept: {
29+
mocks: {
3030
$store: store
3131
},
3232
slots: {

0 commit comments

Comments
 (0)