mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
allow assert.success to accept 0 arity callback
This commit is contained in:
parent
766b4286d5
commit
21ca91d801
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user