add llen to dbal

This commit is contained in:
Baris Usakli
2018-03-15 12:06:40 -04:00
parent fd13f690ae
commit 959a742c63
3 changed files with 28 additions and 0 deletions

View File

@@ -200,4 +200,19 @@ describe('List methods', function () {
});
});
});
it('should get the length of a list', function (done) {
db.listAppend('getLengthList', 1, function (err) {
assert.ifError(err);
db.listAppend('getLengthList', 2, function (err) {
assert.ifError(err);
db.listLength('getLengthList', function (err, length) {
assert.ifError(err);
assert.equal(length, 2);
done();
});
});
});
});
});