Skip to content

Commit 7f78ddb

Browse files
authored
docs(zh): typo and close #1591
1 parent 9be9461 commit 7f78ddb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/zh/guides/using-with-vuex.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ export default {
281281

282282
Getter、mutation 和 action 全部是 JavaScript 函数,所以我们可以不通过 Vue Test Utils 和 Vuex 测试它们。
283283

284-
分别测试 getter、mutation 和 action 的好处是你的单元测试是非常详细的。当它们失败时,你完全知道你代码的问题是什么。当然另外一方面你需要伪造诸如 `commit``dispatch` 的 Vuex 函数。这会导致在一些情况下你伪造错了东西,导致单元测试通过,生产环境的代码缺失败了
284+
分别测试 getter、mutation 和 action 的好处是你的单元测试是非常详细的。当它们失败时,你完全知道你代码的问题是什么。当然另外一方面你需要伪造诸如 `commit``dispatch` 的 Vuex 函数。这会导致在一些情况下你伪造错了东西,导致单元测试通过,生产环境的代码却失败了
285285

286286
我们会创建两个测试文件:`mutations.spec.js``getters.spec.js`
287287

0 commit comments

Comments
 (0)