Skip to content

Commit

Permalink
add different args test
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Tahler committed Mar 26, 2014
1 parent 813736e commit 3dd109f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/core/queue.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,15 @@ describe('queue', function(){
});
});

it('will not match previously scheduled jobs with differnt args', function(done){
queue.enqueueAt(10000, specHelper.queue, 'someJob', [1,2,3], function(){
queue.scheduledAt(specHelper.queue, 'someJob', [3,2,1], function(err, timestamps){
timestamps.length.should.equal(0);
done();
});
});
});

it('can deleted an enqued job', function(done){
queue.enqueue(specHelper.queue, 'someJob', [1,2,3], function(){
queue.length(specHelper.queue, function(err, len){
Expand Down

0 comments on commit 3dd109f

Please sign in to comment.