topic controller tests

This commit is contained in:
barisusakli
2017-02-24 16:26:19 +03:00
parent 3a87f2566a
commit ca1fe557c7
3 changed files with 175 additions and 22 deletions

View File

@@ -299,7 +299,7 @@ topicsController.teaser = function (req, res, next) {
var tid = req.params.topic_id;
if (!utils.isNumber(tid)) {
return next(new Error('[[error:invalid-tid]]'));
return next();
}
async.waterfall([