aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/users.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-03-22 21:15:55 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-03-22 21:25:24 +0100
commit6e07c3de88791a0b342e0cc319590048117f9c2d (patch)
tree049f88d3f6d3ec0aeea09702a583deb86d6ef78f /server/tests/api/users.js
parent2d7653dc8726185615bab66353c4e3fb8fbb5a5f (diff)
downloadPeerTube-6e07c3de88791a0b342e0cc319590048117f9c2d.tar.gz
PeerTube-6e07c3de88791a0b342e0cc319590048117f9c2d.tar.zst
PeerTube-6e07c3de88791a0b342e0cc319590048117f9c2d.zip
Add video category support
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) {