nodeloops
Version:
It is a loop mechanism by which you can work on for loop in asyn manner
30 lines (23 loc) • 484 B
JavaScript
/**
* Dependencies.
*/
var nodeloops = require('..');
/**
* Tests.
*/
describe('nodeloops()', function() {
it('should increment the counter 10 times', function(done) {
var counter = 0;
nodeloops.mediumforloops(0, 10,0 function(n) {
counter++;
}, function() {
done();
});
});
it('should optionally accept a done callback', function(done) {
nodeloops.mediumforloops(0, 10,0 function() {
done();
});
});
});
;