multiple test fixes

This commit is contained in:
barisusakli
2016-11-23 17:15:31 +03:00
parent 7e6e5f771c
commit 5d6e2ad083
13 changed files with 90 additions and 41 deletions

View File

@@ -24,6 +24,24 @@ describe('Hash methods', function () {
done();
});
});
it('should do nothing if key is falsy', function (done) {
db.setObject('', {foo: 1, derp: 2}, function (err) {
assert.ifError(err);
done();
});
});
it('should do nothing if data is falsy', function (done) {
db.setObject('falsy', null, function (err) {
assert.ifError(err);
db.exists('falsy', function (err, exists) {
assert.ifError(err);
assert.equal(exists, false);
done();
});
});
});
});
describe('setObjectField()', function () {