Skip to content

Commit

Permalink
allow assert.success to accept 0 arity callback
Browse files Browse the repository at this point in the history
  • Loading branch information
brianc committed Apr 4, 2013
1 parent 766b428 commit 21ca91d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test-helper.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ assert.empty = function(actual) {
}; };


assert.success = function(callback) { assert.success = function(callback) {
if(callback.length === 1) { if(callback.length === 1 || callback.length === 0) {
return assert.calls(function(err, arg) { return assert.calls(function(err, arg) {
if(err) { if(err) {
console.log(err); console.log(err);
Expand Down

0 comments on commit 21ca91d

Please sign in to comment.