Permalink
Browse files

allow assert.success to accept 0 arity callback

  • Loading branch information...
brianc committed Apr 4, 2013
1 parent 766b428 commit 21ca91d8019c7fea9522d861c66dc2695fac1b63
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/test-helper.js
View
@@ -96,7 +96,7 @@ assert.empty = function(actual) {
};
assert.success = function(callback) {
- if(callback.length === 1) {
+ if(callback.length === 1 || callback.length === 0) {
return assert.calls(function(err, arg) {
if(err) {
console.log(err);

0 comments on commit 21ca91d

Please sign in to comment.