mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-24 00:09:41 +01:00
closes #6340
This commit is contained in:
@@ -27,6 +27,14 @@ describe('Key methods', function () {
|
||||
});
|
||||
});
|
||||
|
||||
it('should return null if key does not exist', function (done) {
|
||||
db.get('doesnotexist', function (err, value) {
|
||||
assert.ifError(err);
|
||||
assert.equal(value, null);
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
it('should return true if key exist', function (done) {
|
||||
db.exists('testKey', function (err, exists) {
|
||||
assert.ifError(err);
|
||||
|
||||
Reference in New Issue
Block a user