Skip to content

Commit

Permalink
added a couple missing argument tests
Browse files Browse the repository at this point in the history
  • Loading branch information
timgit committed May 10, 2017
1 parent 83e0d47 commit f4f09f0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/completeTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
4 changes: 4 additions & 0 deletions test/fetchTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down

0 comments on commit f4f09f0

Please sign in to comment.