mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
add groupTitle test for guests
This commit is contained in:
@@ -605,6 +605,15 @@ describe('User', function () {
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
it('should not get groupTitle for guests', function (done) {
|
||||
User.getUserData(0, function (err, userData) {
|
||||
assert.ifError(err);
|
||||
assert.strictEqual(userData.groupTitle, '');
|
||||
assert.deepStrictEqual(userData.groupTitleArray, []);
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('not logged in', function () {
|
||||
|
||||
Reference in New Issue
Block a user