|
|
@ -406,6 +406,11 @@ describe('Hash methods', () => {
|
|
|
|
done();
|
|
|
|
done();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
it('should not error if field is falsy', async () => {
|
|
|
|
|
|
|
|
const value = await db.isObjectField('hashTestObjectEmpty', '');
|
|
|
|
|
|
|
|
assert.strictEqual(value, false);
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -427,6 +432,11 @@ describe('Hash methods', () => {
|
|
|
|
done();
|
|
|
|
done();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
it('should not error if one field is falsy', async () => {
|
|
|
|
|
|
|
|
const values = await db.isObjectFields('hashTestObject', ['name', '']);
|
|
|
|
|
|
|
|
assert.deepStrictEqual(values, [true, false]);
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
describe('deleteObjectField()', () => {
|
|
|
|
describe('deleteObjectField()', () => {
|
|
|
|