Skip to content

Node.js based forum software built for the modern web

fix isObjectField test

barisusaklie6244c547a14
diff --git a/tests/database/hash.js b/tests/database/hash.js
index e72082b49d..48012396d9 100644
--- a/tests/database/hash.js
+++ b/tests/database/hash.js
@@ -211,7 +211,7 @@ describe('Hash methods', function() {
});
it('should return true if field exists', function(done) {
- db.isObjectField('testObject1', function(err, value) {
+ db.isObjectField('testObject1', 'lastname', function(err, value) {
assert.equal(err, null);
assert.equal(arguments.length, 2);
assert.equal(value, true);