Getting started
The following function takes a function as its argument and returns a new function. You can call the resulting function as many times as you want, but the original function will only be called once:
以下函数接受一个函数作为它的参数,并返回一个新的函数。生成的函数可以调用任意多次,但是原始的函数只调用一次
http://mochajs.org/#testing-mocha
Getting started
The following function takes a function as its argument and returns a new function. You can call the resulting function as many times as you want, but the original function will only be called once:
以下函数接受一个函数作为它的参数,并返回一个新的函数。生成的函数可以调用任意多次,但是原始的函数只调用一次