mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 20:45:58 +01:00
test latest member posts
This commit is contained in:
@@ -498,11 +498,23 @@ describe('Controllers', function () {
|
|||||||
hidden: 0,
|
hidden: 0,
|
||||||
}, function (err) {
|
}, function (err) {
|
||||||
assert.ifError(err);
|
assert.ifError(err);
|
||||||
request(nconf.get('url') + '/groups/group-details', function (err, res, body) {
|
groups.join('group-details', fooUid, function (err) {
|
||||||
assert.ifError(err);
|
assert.ifError(err);
|
||||||
assert.equal(res.statusCode, 200);
|
topics.post({
|
||||||
assert(body);
|
uid: fooUid,
|
||||||
done();
|
title: 'topic title',
|
||||||
|
content: 'test topic content',
|
||||||
|
cid: cid,
|
||||||
|
}, function (err) {
|
||||||
|
assert.ifError(err);
|
||||||
|
request(nconf.get('url') + '/api/groups/group-details', {json: true}, function (err, res, body) {
|
||||||
|
assert.ifError(err);
|
||||||
|
assert.equal(res.statusCode, 200);
|
||||||
|
assert(body);
|
||||||
|
assert.equal(body.posts[0].content, 'test topic content');
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user