Skip to content

Commit

Permalink
纠正错别字
Browse files Browse the repository at this point in the history
根据 前文的 
> 涉及了异步调用,而 mocha 是无法感知异步调用完成的

感知,推测出感到到应该是感知到
  • Loading branch information
yuwei authored and yuwei committed Sep 17, 2015
1 parent 555350b commit af31ce1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lesson8/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ describe('test/app.test.js', function () {
// 之所以这个测试的 function 要接受一个 done 函数,是因为我们的测试内容
// 涉及了异步调用,而 mocha 是无法感知异步调用完成的。所以我们主动接受它提供
// 的 done 函数,在测试完毕时,自行调用一下,以示结束。
// mocha 可以感到到我们的测试函数是否接受 done 参数。js 中,function
// mocha 可以感知到我们的测试函数是否接受 done 参数。js 中,function
// 对象是有长度的,它的长度由它的参数数量决定
// (function (a, b, c, d) {}).length === 4
// 所以 mocha 通过我们测试函数的长度就可以确定我们是否是异步测试。
Expand Down

0 comments on commit af31ce1

Please sign in to comment.