fix: test lock for user create (#8415)

* fix: test lock for user create

* fix: redis hdel with undefined

* feat: add test for undefined key in deleteObjectFields
This commit is contained in:
Barış Soner Uşaklı
2020-06-18 23:16:48 -04:00
committed by GitHub
parent f0526bff9f
commit bef37e27cb
4 changed files with 65 additions and 3 deletions

View File

@@ -435,6 +435,10 @@ describe('Hash methods', function () {
});
});
it('should not error if one of the fields is undefined', async function () {
await db.deleteObjectFields('someKey', ['best', undefined]);
});
it('should not error if field is null', function (done) {
db.deleteObjectField('someKey', null, function (err) {
assert.ifError(err);