mirror of
https://github.com/brianc/node-postgres.git
synced 2026-02-01 16:47:23 +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) {
|
assert.success = function(callback) {
|
||||||
if(callback.length === 1) {
|
if(callback.length === 1 || callback.length === 0) {
|
||||||
return assert.calls(function(err, arg) {
|
return assert.calls(function(err, arg) {
|
||||||
if(err) {
|
if(err) {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user