Exemplo n.º 1
0
 it('sequential error test', function(done) {
   Jobs.doSequential([t0, t3, t2], function(err){
     err.message.should.eql('Task3 Failed');
     done();
   });
 });
Exemplo n.º 2
0
 it('sequential ok test', function(done) {
   Jobs.doSequential([t0, t1, t2], function(err){
     should.equal(null, err);
     done();
   });
 });