aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/users.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-08-05 17:19:08 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-08-05 17:19:08 +0200
commit99a64bfed25e45547df3045cf249bc895e6f220b (patch)
tree0e8150155d616ee25eac41196bdb6cf7413b376c /server/tests/api/users.js
parent6606150c49f587bc7eb0ecec4263ce7fbb18bf15 (diff)
downloadPeerTube-99a64bfed25e45547df3045cf249bc895e6f220b.tar.gz
PeerTube-99a64bfed25e45547df3045cf249bc895e6f220b.tar.zst
PeerTube-99a64bfed25e45547df3045cf249bc895e6f220b.zip
Server: allow user to get its informations (/users/me)
Diffstat (limited to 'server/tests/api/users.js')
-rw-r--r--server/tests/api/users.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/server/tests/api/users.js b/server/tests/api/users.js
index c711d6b64..e1d4a8cf4 100644
--- a/server/tests/api/users.js
+++ b/server/tests/api/users.js
@@ -179,6 +179,19 @@ describe('Test users', function () {
179 }) 179 })
180 }) 180 })
181 181
182 it('Should be able to get the user informations', function (done) {
183 utils.getUserInformation(server.url, accessTokenUser, function (err, res) {
184 if (err) throw err
185
186 const user = res.body
187
188 expect(user.username).to.equal('user_1')
189 expect(user.id).to.exist
190
191 done()
192 })
193 })
194
182 it('Should be able to upload a video with this user', function (done) { 195 it('Should be able to upload a video with this user', function (done) {
183 this.timeout(5000) 196 this.timeout(5000)
184 197