Node.js based forum software built for the modern web
test: add test to check picture!=uploadedpicture
Barış Soner Uşaklı0c2ab2326899
diff --git a/test/user.js b/test/user.jsindex 2d7d85f23b..fd90f9c6de 100644--- a/test/user.js+++ b/test/user.js@@ -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 });