aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-05-10 21:19:24 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-05-10 21:19:24 +0200
commitcbe2f7c34822b1bd3b1f8c691f79f0c29cf21f07 (patch)
treece678124210db8b03b2a523e3b92a14cc403eeee /server/tests
parentf1dae018681936b556b2496b7f2d872c004cfda3 (diff)
downloadPeerTube-cbe2f7c34822b1bd3b1f8c691f79f0c29cf21f07.tar.gz
PeerTube-cbe2f7c34822b1bd3b1f8c691f79f0c29cf21f07.tar.zst
PeerTube-cbe2f7c34822b1bd3b1f8c691f79f0c29cf21f07.zip
Refractoring and add thumbnails support (without tests)
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/api/multiplePods.js13
1 files changed, 11 insertions, 2 deletions
diff --git a/server/tests/api/multiplePods.js b/server/tests/api/multiplePods.js
index adc99f714..4a4532a0f 100644
--- a/server/tests/api/multiplePods.js
+++ b/server/tests/api/multiplePods.js
@@ -193,14 +193,23 @@ describe('Test multiple pods', function () {
193 expect(videos).to.be.an('array') 193 expect(videos).to.be.an('array')
194 expect(videos.length).to.equal(4) 194 expect(videos.length).to.equal(4)
195 195
196 const video1 = videos[2] 196 // We not sure about the order of the two last uploads
197 let video1 = null
198 let video2 = null
199 if (videos[2].name === 'my super name for pod 3') {
200 video1 = videos[2]
201 video2 = videos[3]
202 } else {
203 video1 = videos[3]
204 video2 = videos[2]
205 }
206
197 expect(video1.name).to.equal('my super name for pod 3') 207 expect(video1.name).to.equal('my super name for pod 3')
198 expect(video1.description).to.equal('my super description for pod 3') 208 expect(video1.description).to.equal('my super description for pod 3')
199 expect(video1.podUrl).to.equal('http://localhost:9003') 209 expect(video1.podUrl).to.equal('http://localhost:9003')
200 expect(video1.magnetUri).to.exist 210 expect(video1.magnetUri).to.exist
201 expect(video1.duration).to.equal(5) 211 expect(video1.duration).to.equal(5)
202 212
203 const video2 = videos[3]
204 expect(video2.name).to.equal('my super name for pod 3-2') 213 expect(video2.name).to.equal('my super name for pod 3-2')
205 expect(video2.description).to.equal('my super description for pod 3-2') 214 expect(video2.description).to.equal('my super description for pod 3-2')
206 expect(video2.podUrl).to.equal('http://localhost:9003') 215 expect(video2.podUrl).to.equal('http://localhost:9003')