Node.js based forum software built for the modern web
test: fix broken test
Julian Lamf295174e0772
diff --git a/src/categories/index.js b/src/categories/index.jsindex a95d862e77..619f756642 100644--- a/src/categories/index.js+++ b/src/categories/index.js@@ -131,7 +131,6 @@ Categories.getModeratorUids = async function (cids) {return _.uniq(sets.uids[index].concat(_.flatten(sets.groupNames[index].map(g => map[g]))));});- console.log('what', moderatorUids);return moderatorUids;};diff --git a/src/categories/update.js b/src/categories/update.jsindex ec1c2edb1e..d4be83edb8 100644--- a/src/categories/update.js+++ b/src/categories/update.js@@ -11,7 +11,6 @@ const cache = require('../cache');module.exports = function (Categories) {Categories.update = async function (modified) {const cids = Object.keys(modified);- console.log('updating', cids);await Promise.all(cids.map(cid => updateCategory(cid, modified[cid])));return cids;};diff --git a/test/categories.js b/test/categories.jsindex 284d0a0696..4a92929864 100644--- a/test/categories.js+++ b/test/categories.js@@ -826,7 +826,7 @@ describe('Categories', () => {});});- describe.only('Categories.getModeratorUids', () => {+ describe('Categories.getModeratorUids', () => {let cid;before(async () => {@@ -865,7 +865,7 @@ describe('Categories', () => {const payload = {};payload[cid] = { disabled: 1 };await Categories.update(payload);- const uids = await Categories.getModeratorUids([1, 2]);+ const uids = await Categories.getModeratorUids([cid, 2]);assert(!uids[0].includes('1'));});