Skip to content

Commit

Permalink
Fix: Improve verifyArguments error assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Jun 27, 2016
1 parent a9104aa commit 4932102
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions test/verifyArguments.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,7 @@ describe('verifyArguments', function(){
verifyArguments([validArg, 'invalid', validArg]);
}

var expected = {
name: 'AssertionError',
message: 'Only functions can be combined, got string for argument 1'
};

expect(invalid).to.throw(expected);
expect(invalid).to.throw('Only functions can be combined, got string for argument 1');
done();
});

Expand All @@ -40,12 +35,7 @@ describe('verifyArguments', function(){
verifyArguments([]);
}

var expected = {
name: 'AssertionError',
message: 'A set of functions to combine is required'
};

expect(empty).to.throw(expected);
expect(empty).to.throw('A set of functions to combine is required');
done();
});
});

0 comments on commit 4932102

Please sign in to comment.