diff options
Diffstat (limited to 'server/tests/api/multiplePods.js')
-rw-r--r-- | server/tests/api/multiplePods.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/tests/api/multiplePods.js b/server/tests/api/multiplePods.js index ba4ce70c9..adc99f714 100644 --- a/server/tests/api/multiplePods.js +++ b/server/tests/api/multiplePods.js | |||
@@ -95,6 +95,7 @@ describe('Test multiple pods', function () { | |||
95 | expect(video.description).to.equal('my super description for pod 1') | 95 | expect(video.description).to.equal('my super description for pod 1') |
96 | expect(video.podUrl).to.equal('http://localhost:9001') | 96 | expect(video.podUrl).to.equal('http://localhost:9001') |
97 | expect(video.magnetUri).to.exist | 97 | expect(video.magnetUri).to.exist |
98 | expect(video.duration).to.equal(10) | ||
98 | 99 | ||
99 | if (server.url !== 'http://localhost:9001') { | 100 | if (server.url !== 'http://localhost:9001') { |
100 | expect(video.isLocal).to.be.false | 101 | expect(video.isLocal).to.be.false |
@@ -144,6 +145,7 @@ describe('Test multiple pods', function () { | |||
144 | expect(video.description).to.equal('my super description for pod 2') | 145 | expect(video.description).to.equal('my super description for pod 2') |
145 | expect(video.podUrl).to.equal('http://localhost:9002') | 146 | expect(video.podUrl).to.equal('http://localhost:9002') |
146 | expect(video.magnetUri).to.exist | 147 | expect(video.magnetUri).to.exist |
148 | expect(video.duration).to.equal(5) | ||
147 | 149 | ||
148 | if (server.url !== 'http://localhost:9002') { | 150 | if (server.url !== 'http://localhost:9002') { |
149 | expect(video.isLocal).to.be.false | 151 | expect(video.isLocal).to.be.false |
@@ -190,17 +192,20 @@ describe('Test multiple pods', function () { | |||
190 | const videos = res.body | 192 | const videos = res.body |
191 | expect(videos).to.be.an('array') | 193 | expect(videos).to.be.an('array') |
192 | expect(videos.length).to.equal(4) | 194 | expect(videos.length).to.equal(4) |
195 | |||
193 | const video1 = videos[2] | 196 | const video1 = videos[2] |
194 | expect(video1.name).to.equal('my super name for pod 3') | 197 | expect(video1.name).to.equal('my super name for pod 3') |
195 | expect(video1.description).to.equal('my super description for pod 3') | 198 | expect(video1.description).to.equal('my super description for pod 3') |
196 | expect(video1.podUrl).to.equal('http://localhost:9003') | 199 | expect(video1.podUrl).to.equal('http://localhost:9003') |
197 | expect(video1.magnetUri).to.exist | 200 | expect(video1.magnetUri).to.exist |
201 | expect(video1.duration).to.equal(5) | ||
198 | 202 | ||
199 | const video2 = videos[3] | 203 | const video2 = videos[3] |
200 | expect(video2.name).to.equal('my super name for pod 3-2') | 204 | expect(video2.name).to.equal('my super name for pod 3-2') |
201 | expect(video2.description).to.equal('my super description for pod 3-2') | 205 | expect(video2.description).to.equal('my super description for pod 3-2') |
202 | expect(video2.podUrl).to.equal('http://localhost:9003') | 206 | expect(video2.podUrl).to.equal('http://localhost:9003') |
203 | expect(video2.magnetUri).to.exist | 207 | expect(video2.magnetUri).to.exist |
208 | expect(video2.duration).to.equal(5) | ||
204 | 209 | ||
205 | if (server.url !== 'http://localhost:9003') { | 210 | if (server.url !== 'http://localhost:9003') { |
206 | expect(video1.isLocal).to.be.false | 211 | expect(video1.isLocal).to.be.false |