mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
test: add last one
This commit is contained in:
@@ -66,6 +66,14 @@ describe('custom user fields', () => {
|
||||
{ message: '[[error:custom-user-field-invalid-number, Lucky Number]]' },
|
||||
);
|
||||
|
||||
await assert.rejects(
|
||||
user.updateProfile(highRepUid, {
|
||||
uid: highRepUid,
|
||||
location: 'https://spam.com',
|
||||
}),
|
||||
{ message: '[[error:custom-user-field-invalid-text, Location]]' },
|
||||
);
|
||||
|
||||
await assert.rejects(
|
||||
user.updateProfile(highRepUid, {
|
||||
uid: highRepUid,
|
||||
@@ -110,8 +118,7 @@ describe('custom user fields', () => {
|
||||
soccerTeam: 'Galatasaray',
|
||||
});
|
||||
|
||||
const { response, body } = await request.get(`${nconf.get('url')}/api/user/highrepuser`);
|
||||
// console.log(body);
|
||||
const { body } = await request.get(`${nconf.get('url')}/api/user/highrepuser`);
|
||||
assert.strictEqual(body.website, 'https://nodebb.org');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user