allow assert.success to accept 0 arity callback

This commit is contained in:
bmc 2013-04-04 11:54:31 -05:00
parent 766b4286d5
commit 21ca91d801

View File

@ -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);