mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
feat: consolidation of flags to reduce flagspam, #8510
Squashed commit of the following: commitc6d0939620Author: Julian Lam <julian@nodebb.org> Date: Fri Jul 24 13:41:32 2020 -0400 fix: more tests commit32f9af2a87Merge:e509075354eae927d1Author: Julian Lam <julian@nodebb.org> Date: Fri Jul 24 10:53:04 2020 -0400 Merge remote-tracking branch 'origin/master' into singleton-flags commite509075351Author: Julian Lam <julian@nodebb.org> Date: Fri Jul 24 10:52:46 2020 -0400 fix: controllers-admin test commitfd5af99e30Author: Julian Lam <julian@nodebb.org> Date: Fri Jul 17 17:26:55 2020 -0400 fix(tests): dummy commit to trigger travisCI commitc452a6ffcfAuthor: Julian Lam <julian@nodebb.org> Date: Fri Jul 17 17:05:09 2020 -0400 fix(openapi): openapi spec changes commit8089a74e89Author: Julian Lam <julian@nodebb.org> Date: Fri Jul 17 15:48:00 2020 -0400 fix: reversing the order of reports for display purposes commita099892b37Author: Julian Lam <julian@nodebb.org> Date: Fri Jul 17 15:45:44 2020 -0400 refactor: run all flag creation calls in a single batch commitb24999682fAuthor: Julian Lam <julian@nodebb.org> Date: Fri Jul 17 15:08:23 2020 -0400 feat: handling multiple reporters per flag, #8510 commit08c75c0200Author: Julian Lam <julian@nodebb.org> Date: Thu Jul 16 20:53:18 2020 -0400 feat: upgrade script for #8510
This commit is contained in:
@@ -712,7 +712,9 @@ describe('Admin Controllers', function () {
|
||||
request(nconf.get('url') + '/api/flags/' + flagId, { jar: moderatorJar, json: true }, function (err, res, body) {
|
||||
assert.ifError(err);
|
||||
assert(body);
|
||||
assert.equal(body.reporter.username, 'regular');
|
||||
assert(body.reports);
|
||||
assert(Array.isArray(body.reports));
|
||||
assert.equal(body.reports[0].reporter.username, 'regular');
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user