Skip to content

Commit

Permalink
Mock a successful job save by calling the callback without arguments.…
Browse files Browse the repository at this point in the history
… Fixes issue raweng#2.
  • Loading branch information
schinkowitch committed Jan 22, 2015
1 parent bc66b86 commit b6c79fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mock-kue.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ kue.Job.prototype.save = function(fn){
this.id = mockJobs.length;
mockJobs.push(this);
if(fn){
fn(this);
fn();
}
}

Expand Down

0 comments on commit b6c79fc

Please sign in to comment.