Skip to content

Commit

Permalink
Better throw test
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-marcacci committed Jun 7, 2015
1 parent e88dec3 commit 5f1e5e6
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,12 @@ describe('Redlock', function(){
});

it('should throw an error if not passed any clients', function(){
try {
assert.throws(function(){
new Redlock({
retryCount: 2,
retryDelay: 150
});
} catch(err){
return;
}

throw(new Error('No error thrown.'));
});
});

var one;
Expand Down

0 comments on commit 5f1e5e6

Please sign in to comment.