This commit is contained in:
Barış Soner Uşaklı
2017-05-19 14:52:36 -04:00
parent 0bb52c5fc5
commit 95196ceedc
4 changed files with 19 additions and 2 deletions

View File

@@ -190,6 +190,15 @@ describe('Hash methods', function () {
done();
});
});
it('should return undefined for all fields if object does not exist', function (done) {
db.getObjectsFields(['doesnotexist1', 'doesnotexist2'], ['name', 'age'], function (err, data) {
assert.ifError(err);
assert.equal(data.name, null);
assert.equal(data.age, null);
done();
});
});
});
describe('getObjectKeys()', function () {