diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-05-21 19:30:22 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-05-21 19:30:22 +0200 |
commit | 68ce3ae021c9bc11b155044df6d23ba60e91eee4 (patch) | |
tree | 7cb162a57994f96703ef8387babdeda17d3b58bc /server/tests/api/users.js | |
parent | 501bc6c2b186f6a724a5b619d15aa44791f13995 (diff) | |
download | PeerTube-68ce3ae021c9bc11b155044df6d23ba60e91eee4.tar.gz PeerTube-68ce3ae021c9bc11b155044df6d23ba60e91eee4.tar.zst PeerTube-68ce3ae021c9bc11b155044df6d23ba60e91eee4.zip |
Add total results field and wrap videos in data field when listing
videos
Diffstat (limited to 'server/tests/api/users.js')
-rw-r--r-- | server/tests/api/users.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/tests/api/users.js b/server/tests/api/users.js index cb44d2611..9ab5083a0 100644 --- a/server/tests/api/users.js +++ b/server/tests/api/users.js | |||
@@ -108,7 +108,7 @@ describe('Test users', function () { | |||
108 | utils.getVideosList(server.url, function (err, res) { | 108 | utils.getVideosList(server.url, function (err, res) { |
109 | if (err) throw err | 109 | if (err) throw err |
110 | 110 | ||
111 | const video = res.body[0] | 111 | const video = res.body.data[0] |
112 | expect(video.author).to.equal('root') | 112 | expect(video.author).to.equal('root') |
113 | 113 | ||
114 | videoId = video.id | 114 | videoId = video.id |