This commit is contained in:
Barış Soner Uşaklı
2018-01-26 15:50:26 -05:00
parent 5e89c52041
commit 0a5d16d1cd
3 changed files with 18 additions and 2 deletions

View File

@@ -816,7 +816,7 @@ describe('User', function () {
}, function (err, uploadedPicture) {
assert.ifError(err);
assert.equal(uploadedPicture.url, '/assets/uploads/profile/' + uid + '-profileavatar.png');
assert.equal(uploadedPicture.path, path.join(nconf.get('base_dir'), 'public', 'uploads', 'profile', uid + '-profileavatar.png'));
assert.equal(uploadedPicture.path, path.join(nconf.get('upload_path'), 'profile', uid + '-profileavatar.png'));
done();
});
}