mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-07-05 23:58:48 +02:00
Merge pull request #1028 from mleanos/duplicate-test-profile-picture
Duplicate CRUD Test - Profile Picture
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user