From ee820341d551db06a1a4b3f280fb9e3dab82b282 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Tue, 30 Dec 2014 18:52:23 -0500 Subject: [PATCH] fix incrObjectFieldBy test --- tests/database/hash.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/database/hash.js b/tests/database/hash.js index 34f6179428..2086dc1af7 100644 --- a/tests/database/hash.js +++ b/tests/database/hash.js @@ -285,7 +285,7 @@ describe('Hash methods', function() { }); it('should increment an object fields by passed in value and return it', function(done) { - db.decrObjectField('testObject1', 'age', 11, function(err, newValue) { + db.incrObjectFieldBy('testObject1', 'age', 11, function(err, newValue) { assert.equal(err, null); assert.equal(arguments.length, 2); assert.equal(newValue, 110); @@ -296,7 +296,6 @@ describe('Hash methods', function() { - after(function() { db.flushdb(); });