test: add test to check picture!=uploadedpicture

This commit is contained in:
Barış Soner Uşaklı
2026-02-11 21:19:43 -05:00
parent b95cd88214
commit 0c2ab23268

View File

@@ -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 });