From b6c79fc043b7a92640220e4cdcefae90dcb919f4 Mon Sep 17 00:00:00 2001 From: Aaron Schinkowitch Date: Thu, 22 Jan 2015 11:58:57 +0100 Subject: [PATCH] Mock a successful job save by calling the callback without arguments. Fixes issue #2. --- mock-kue.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mock-kue.js b/mock-kue.js index a9ca862..c31dfb6 100644 --- a/mock-kue.js +++ b/mock-kue.js @@ -11,7 +11,7 @@ kue.Job.prototype.save = function(fn){ this.id = mockJobs.length; mockJobs.push(this); if(fn){ - fn(this); + fn(); } }