mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
test: fix actor tests
This commit is contained in:
@@ -235,7 +235,7 @@ module.exports = function (User) {
|
||||
user.username = validator.escape(user.username ? user.username.toString() : '');
|
||||
}
|
||||
|
||||
if (user.hasOwnProperty('url')) {
|
||||
if (user.hasOwnProperty('url') && !requestedFields.includes('url')) {
|
||||
// works around renderOverride supplying `url` to templates
|
||||
user.remoteUrl = user.url;
|
||||
delete user.url;
|
||||
|
||||
@@ -166,7 +166,7 @@ describe('Controllers', () => {
|
||||
|
||||
assert.strictEqual(body.id, `${nconf.get('url')}/category/${cid}`);
|
||||
assert.strictEqual(body.type, 'Group');
|
||||
assert.strictEqual(body.summary, description);
|
||||
assert(body.summary.startsWith(description));
|
||||
assert.deepStrictEqual(body.icon, {
|
||||
type: 'Image',
|
||||
mediaType: 'image/png',
|
||||
|
||||
Reference in New Issue
Block a user