mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
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:
committed by
GitHub
parent
f0526bff9f
commit
bef37e27cb
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user