diff --git a/test/completeTest.js b/test/completeTest.js index 714a2453..f947d1b3 100644 --- a/test/completeTest.js +++ b/test/completeTest.js @@ -17,6 +17,10 @@ describe('complete', function() { boss.stop().then(() => finished()); }); + it('should reject missing id argument', function(finished){ + boss.onComplete().catch(() => finished()); + }); + it('should subscribe to the response on a complete call', function(finished){ const jobName = 'part-of-something-important'; diff --git a/test/fetchTest.js b/test/fetchTest.js index 8a0af699..4d41673f 100644 --- a/test/fetchTest.js +++ b/test/fetchTest.js @@ -17,6 +17,10 @@ describe('fetch', function(){ boss.stop().then(() => finished()); }); + it('should reject missing id argument', function(finished){ + boss.fetch().catch(() => finished()); + }); + it('should fetch a single job by name and manually complete', function(finished) { let jobName = 'no-subscribe-required';