Permalink
Browse files

Merge pull request #19 from wryk/patch

Patch tests/missing semicolon
  • Loading branch information...
2 parents 7227882 + d4c9ef6 commit fbdb166d29afeab0edd7306ca831bfb05afeaa32 @tj tj committed Nov 6, 2013
Showing with 8 additions and 8 deletions.
  1. +1 −1 index.js
  2. +7 −7 test/batch.js
View
@@ -142,7 +142,7 @@ Batch.prototype.end = function(cb){
duration: end - start
});
- if (--pending) next()
+ if (--pending) next();
else if(!throws) cb(errors, results);
else cb(null, results);
}
View
@@ -70,19 +70,19 @@ describe('Batch', function(){
switch (e.index) {
case 0:
e.value.should.equal('foo');
- e.percent.should.be.a('number');
- e.total.should.be.a('number');
- e.complete.should.be.a('number');
- e.pending.should.be.a('number');
- e.duration.should.be.a('number');
+ e.percent.should.be.a.Number;
+ e.total.should.be.a.Number;
+ e.complete.should.be.a.Number;
+ e.pending.should.be.a.Number;
+ e.duration.should.be.a.Number;
break;
case 1:
e.value.should.equal('bar');
- e.percent.should.be.a('number');
+ e.percent.should.be.a.Number;
break;
case 2:
e.value.should.equal('baz');
- e.percent.should.be.a('number');
+ e.percent.should.be.a.Number;
break;
}

0 comments on commit fbdb166

Please sign in to comment.