Server: allow user to get its informations (/users/me)

This commit is contained in:
Chocobozzz
2016-08-05 17:19:08 +02:00
parent 6606150c49
commit 99a64bfed2
4 changed files with 62 additions and 7 deletions

View File

@@ -179,6 +179,19 @@ describe('Test users', function () {
})
})
it('Should be able to get the user informations', function (done) {
utils.getUserInformation(server.url, accessTokenUser, function (err, res) {
if (err) throw err
const user = res.body
expect(user.username).to.equal('user_1')
expect(user.id).to.exist
done()
})
})
it('Should be able to upload a video with this user', function (done) {
this.timeout(5000)