Skip to content

Commit c76af6c

Browse files
authored
Update unit-testing.md
1 parent c95ab3c commit c76af6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/guide/unit-testing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ describe('MyComponent', () => {
7070

7171
## 编写可被测试的组件
7272

73-
很多组件的渲染输出由它的prop决定。事实上,如果一个组件的渲染输出完全取决于它的prop,那么它会让测试变得简单, 就好像断言不同参数的纯函数的返回值。看下面这个例子:
73+
很多组件的渲染输出由它的props决定。事实上,如果一个组件的渲染输出完全取决于它的props,那么它会让测试变得简单, 就好像断言不同参数的纯函数的返回值。看下面这个例子:
7474

7575
``` html
7676
<template>
@@ -84,7 +84,7 @@ describe('MyComponent', () => {
8484
</script>
8585
```
8686

87-
你可以在不同的prop中,通过 `propsData` 选项断言它的渲染输出:
87+
你可以在不同的props中,通过 `propsData` 选项断言它的渲染输出:
8888

8989
``` js
9090
import Vue from 'vue'

0 commit comments

Comments
 (0)