mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-03 11:01:20 +01:00
test: add test to check picture!=uploadedpicture
This commit is contained in:
@@ -1035,6 +1035,11 @@ describe('User', () => {
|
||||
}
|
||||
});
|
||||
|
||||
it('should return picture and uploaded picture as different values', async () => {
|
||||
const userData = await User.getUserFields(uid, ['picture', 'uploadedpicture']);
|
||||
assert.notStrictEqual(userData.picture, userData.uploadedpicture);
|
||||
});
|
||||
|
||||
it('should set user picture to uploaded', async () => {
|
||||
await User.setUserField(uid, 'uploadedpicture', '/test');
|
||||
await apiUser.changePicture({ uid: uid }, { type: 'uploaded', uid: uid });
|
||||
|
||||
Reference in New Issue
Block a user