mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-06 07:40:43 +01:00
fix test expand option removed
This commit is contained in:
@@ -52,21 +52,6 @@ describe('Groups', function() {
|
||||
Groups.get('Test', {}, function(err, groupObj) {
|
||||
if (err) return done(err);
|
||||
|
||||
assert.equal(typeof groupObj, 'object');
|
||||
assert(Array.isArray(groupObj.members));
|
||||
assert.strictEqual(groupObj.name, 'Test');
|
||||
assert.strictEqual(groupObj.description, 'Foobar!');
|
||||
assert.strictEqual(groupObj.memberCount, 1);
|
||||
assert.notEqual(typeof groupObj.members[0], 'object');
|
||||
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
it('with the "expand" option, should show both group information and user information', function(done) {
|
||||
Groups.get('Test', { expand: true }, function(err, groupObj) {
|
||||
if (err) return done(err);
|
||||
|
||||
assert.equal(typeof groupObj, 'object');
|
||||
assert(Array.isArray(groupObj.members));
|
||||
assert.strictEqual(groupObj.name, 'Test');
|
||||
|
||||
Reference in New Issue
Block a user