mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
fix tests
This commit is contained in:
@@ -104,10 +104,10 @@ module.exports = function (Posts) {
|
|||||||
plugins.fireHook('filter:post.get', { post: postData, uid: data.uid }, next);
|
plugins.fireHook('filter:post.get', { post: postData, uid: data.uid }, next);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
function (postData, next) {
|
function (data, next) {
|
||||||
postData.isMain = isMain;
|
data.post.isMain = isMain;
|
||||||
plugins.fireHook('action:post.save', { post: _.clone(postData) });
|
plugins.fireHook('action:post.save', { post: _.clone(data.post) });
|
||||||
next(null, postData);
|
next(null, data.post);
|
||||||
},
|
},
|
||||||
], callback);
|
], callback);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -48,7 +48,6 @@ describe('Hash methods', function () {
|
|||||||
assert.ifError(err);
|
assert.ifError(err);
|
||||||
db.getObject('emptyField', function (err, data) {
|
db.getObject('emptyField', function (err, data) {
|
||||||
assert.ifError(err);
|
assert.ifError(err);
|
||||||
console.log(data);
|
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user