This commit is contained in:
Barış Soner Uşaklı
2018-11-21 20:40:40 -05:00
parent 48690a01b9
commit ca1e3a758b
4 changed files with 72 additions and 20 deletions

View File

@@ -53,6 +53,14 @@ describe('Key methods', function () {
});
});
it('should work for an array of keys', function (done) {
db.exists(['testKey', 'doesnotexist'], function (err, exists) {
assert.ifError(err);
assert.deepStrictEqual(exists, [true, false]);
done();
});
});
it('should delete a key without error', function (done) {
db.delete('testKey', function (err) {
assert.ifError(err);