Skip to content

Commit

Permalink
Add userAPI#updateAvatarURL tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gocreating committed Nov 5, 2016
1 parent cefda27 commit 0185dc7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions specs/endToEnd/apis/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,21 @@ describe('#userAPI', () => {
});
});

describe('#updateAvatarURL()', () => {
it('[auth user] should update user avatar', (done) => {
let newAvatarURL = 'http://imgur.com/gallery/A8eQsll';

userAPI(new ApiEngine(reqs.users[0]))
.updateAvatarURL({
avatarURL: newAvatarURL,
})
.then((json) => {
expect(json.user.avatarURL).to.equal(newAvatarURL);
done();
});
});
});

describe('#updatePassword()', () => {
it('[auth user] should be able to change password', (done) => {
let oldPassword = features.users.users[0].password;
Expand Down

0 comments on commit 0185dc7

Please sign in to comment.