Skip to content

Commit

Permalink
void 0
Browse files Browse the repository at this point in the history
  • Loading branch information
alsotang committed Oct 11, 2014
1 parent 4aa4375 commit 41cd451
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lesson10/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ var int3 = function (str) {
```js
var number = '100';

// add tests
// 添加测试
suite
.add('+', function() {
int1(number);
Expand All @@ -53,14 +53,13 @@ suite
.add('Number', function () {
int3(number);
})
// add listeners
// 每个测试跑完后,输出信息
.on('cycle', function(event) {
console.log(String(event.target));
})
.on('complete', function() {
console.log('Fastest is ' + this.filter('fastest').pluck('name'));
})
// run async
// 这里的 async 不是 mocha 测试那个 async 的意思,这个选项与它的时间计算有关,默认勾上就好了。
.run({ 'async': true });
```
Expand Down

0 comments on commit 41cd451

Please sign in to comment.