mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-06 12:31:33 +01:00
fix: controllers-admin test
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) {
|
request(nconf.get('url') + '/api/flags/' + flagId, { jar: moderatorJar, json: true }, function (err, res, body) {
|
||||||
assert.ifError(err);
|
assert.ifError(err);
|
||||||
assert(body);
|
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();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user