Skip to content

Commit 21ca91d

Browse files
committed
allow assert.success to accept 0 arity callback
1 parent 766b428 commit 21ca91d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test-helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ assert.empty = function(actual) {
9696
};
9797

9898
assert.success = function(callback) {
99-
if(callback.length === 1) {
99+
if(callback.length === 1 || callback.length === 0) {
100100
return assert.calls(function(err, arg) {
101101
if(err) {
102102
console.log(err);

0 commit comments

Comments
 (0)