Skip to content

Commit 2e63219

Browse files
authored
docs(zh-cn): review passing-data.md (#2575)
1 parent a0e8454 commit 2e63219

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/zh/guide/essentials/passing-data.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const Password = {
6060
}
6161
```
6262

63-
为了测试这一点,我们需要设置 `minLength` 以及一个小于该数字的 `password`。我们可以使用 `data``props` 的挂载选项来实现。最后,我们将断言错误消息是否被渲染
63+
为了测试这一点,我们需要设置 `minLength` 以及一个小于该数字的 `password`。我们可以使用 `data``props` 的挂载选项来实现。最后,我们将断言错误消息是否被正确渲染
6464

6565
```js
6666
test('renders an error if length is too short', () => {
@@ -129,5 +129,5 @@ test('renders a greeting when show is true', async () => {
129129

130130
- 使用 `props``data` 的挂载选项预设组件的状态。
131131
- 使用 `setProps()` 在测试期间更新属性。
132-
-`setProps()` 前使用 await 关键字,以确保 Vue 在测试继续之前会更新 DOM。
132+
-`setProps()` 前使用 `await` 关键字,以确保 Vue 在测试继续之前会更新 DOM。
133133
- 直接与组件交互可以提供更大的覆盖率。考虑结合使用 `setValue``trigger` 以及 `data` 来确保一切正常工作。

0 commit comments

Comments
 (0)