Skip to content

Commit 463b301

Browse files
committed
!docs: recovery /api/vi
1 parent 54ec728 commit 463b301

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

api/vi.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ test('operations are resolved', async () => {
363363
该方法还将在导入解析后等待下一个 `setTimeout` 跟他挂钩,因此所有同步操作都应在解析时完成。
364364
:::
365365

366-
## 模拟函数和对象
366+
## 模拟函数和对象 {#mocking-functions-and-objects}
367367

368368
本节介绍如何使用 [method mock](/api/mock) 替换环境变量和全局变量。
369369

@@ -1059,12 +1059,12 @@ vi.setConfig({
10591059
restoreMocks: true,
10601060
fakeTimers: {
10611061
now: new Date(2021, 11, 19),
1062-
// supports the whole object
1062+
// 支持完整对象
10631063
},
10641064
maxConcurrency: 10,
10651065
sequence: {
10661066
hooks: 'stack',
1067-
// supports only "sequence.hooks"
1067+
// 仅支持 "sequence.hooks"
10681068
},
10691069
})
10701070
```

0 commit comments

Comments
 (0)