From 21ca91d8019c7fea9522d861c66dc2695fac1b63 Mon Sep 17 00:00:00 2001 From: bmc Date: Thu, 4 Apr 2013 11:54:31 -0500 Subject: [PATCH] allow assert.success to accept 0 arity callback --- test/test-helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-helper.js b/test/test-helper.js index 3a6cf8b7..8d854b81 100644 --- a/test/test-helper.js +++ b/test/test-helper.js @@ -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);