Merge pull request #1028 from mleanos/duplicate-test-profile-picture

Duplicate CRUD Test - Profile Picture
This commit is contained in:
Liran Tal
2015-10-30 07:29:46 +02:00

View File

@@ -876,16 +876,6 @@ describe('User CRUD tests', function () {
});
});
it('should not be able to change profile picture if not signed in', function (done) {
agent.post('/api/users/picture')
.attach('newProfilePicture', './modules/users/client/img/profile/default.png')
.send(credentials)
.expect(400)
.end(function (userInfoErr, userInfoRes) {
done(userInfoErr);
});
});
it('should not be able to change profile picture if attach a picture with a different field name', function (done) {
agent.post('/api/auth/signin')
.send(credentials)