aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/users.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/users.js')
-rw-r--r--server/tests/api/users.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/server/tests/api/users.js b/server/tests/api/users.js
index f9568b874..0f062c11f 100644
--- a/server/tests/api/users.js
+++ b/server/tests/api/users.js
@@ -87,9 +87,10 @@ describe('Test users', function () {
87 87
88 const name = 'my super name' 88 const name = 'my super name'
89 const description = 'my super description' 89 const description = 'my super description'
90 const category = 5
90 const tags = [ 'tag1', 'tag2' ] 91 const tags = [ 'tag1', 'tag2' ]
91 const video = 'video_short.webm' 92 const video = 'video_short.webm'
92 videosUtils.uploadVideo(server.url, accessToken, name, description, tags, video, 401, done) 93 videosUtils.uploadVideo(server.url, accessToken, name, category, description, tags, video, 401, done)
93 }) 94 })
94 95
95 it('Should not be able to make friends', function (done) { 96 it('Should not be able to make friends', function (done) {
@@ -113,10 +114,11 @@ describe('Test users', function () {
113 114
114 it('Should upload the video with the correct token', function (done) { 115 it('Should upload the video with the correct token', function (done) {
115 const name = 'my super name' 116 const name = 'my super name'
117 const category = 5
116 const description = 'my super description' 118 const description = 'my super description'
117 const tags = [ 'tag1', 'tag2' ] 119 const tags = [ 'tag1', 'tag2' ]
118 const video = 'video_short.webm' 120 const video = 'video_short.webm'
119 videosUtils.uploadVideo(server.url, accessToken, name, description, tags, video, 204, function (err, res) { 121 videosUtils.uploadVideo(server.url, accessToken, name, category, description, tags, video, 204, function (err, res) {
120 if (err) throw err 122 if (err) throw err
121 123
122 videosUtils.getVideosList(server.url, function (err, res) { 124 videosUtils.getVideosList(server.url, function (err, res) {
@@ -133,10 +135,11 @@ describe('Test users', function () {
133 135
134 it('Should upload the video again with the correct token', function (done) { 136 it('Should upload the video again with the correct token', function (done) {
135 const name = 'my super name 2' 137 const name = 'my super name 2'
138 const category = 5
136 const description = 'my super description 2' 139 const description = 'my super description 2'
137 const tags = [ 'tag1' ] 140 const tags = [ 'tag1' ]
138 const video = 'video_short.webm' 141 const video = 'video_short.webm'
139 videosUtils.uploadVideo(server.url, accessToken, name, description, tags, video, 204, done) 142 videosUtils.uploadVideo(server.url, accessToken, name, category, description, tags, video, 204, done)
140 }) 143 })
141 144
142 it('Should retrieve a video rating', function (done) { 145 it('Should retrieve a video rating', function (done) {
@@ -228,10 +231,11 @@ describe('Test users', function () {
228 this.timeout(5000) 231 this.timeout(5000)
229 232
230 const name = 'my super name' 233 const name = 'my super name'
234 const category = 5
231 const description = 'my super description' 235 const description = 'my super description'
232 const tags = [ 'tag1', 'tag2', 'tag3' ] 236 const tags = [ 'tag1', 'tag2', 'tag3' ]
233 const file = 'video_short.webm' 237 const file = 'video_short.webm'
234 videosUtils.uploadVideo(server.url, accessTokenUser, name, description, tags, file, done) 238 videosUtils.uploadVideo(server.url, accessTokenUser, name, category, description, tags, file, done)
235 }) 239 })
236 240
237 it('Should list all the users', function (done) { 241 it('Should list all the users', function (done) {