mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
closes #5692
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user