fix tests

This commit is contained in:
barisusakli
2014-12-25 15:57:37 -05:00
parent 8007bb0644
commit b7f55e8453

View File

@@ -29,7 +29,7 @@ module.exports = function(Categories) {
},
function(topics, next) {
if (!Array.isArray(topics) || !topics.length) {
return next(null, []);
return next(null, {topics: [], uid: data.uid});
}
for (var i=0; i<topics.length; ++i) {