helper function to test for query successes
This commit is contained in:
parent
56ba2567ce
commit
3fd8d3f853
@ -88,6 +88,13 @@ assert.empty = function(actual) {
|
|||||||
assert.length(actual, 0);
|
assert.length(actual, 0);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
assert.success = function(callback) {
|
||||||
|
assert.calls(function(err, arg) {
|
||||||
|
assert.isNull(err);
|
||||||
|
callback(arg);
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
assert.length = function(actual, expectedLength) {
|
assert.length = function(actual, expectedLength) {
|
||||||
assert.equal(actual.length, expectedLength);
|
assert.equal(actual.length, expectedLength);
|
||||||
|
Loading…
Reference in New Issue
Block a user