mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-15 18:26:15 +01:00
fix incrObjectFieldBy test
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user