aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/multiple-pods.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-11-14 20:45:00 +0100
committerChocobozzz <florian.bigard@gmail.com>2016-11-16 20:29:26 +0100
commita4254ea1738d3b963fd4ccb995ab63f70656d6c0 (patch)
tree5b86f5111b9ff764e41285198c15b5c24d4648f4 /server/tests/api/multiple-pods.js
parent49abbbbedca83b9031d3e2eb3ae9ad9b6a7d96ed (diff)
downloadPeerTube-a4254ea1738d3b963fd4ccb995ab63f70656d6c0.tar.gz
PeerTube-a4254ea1738d3b963fd4ccb995ab63f70656d6c0.tar.zst
PeerTube-a4254ea1738d3b963fd4ccb995ab63f70656d6c0.zip
Server: adapt tests to host
Diffstat (limited to 'server/tests/api/multiple-pods.js')
-rw-r--r--server/tests/api/multiple-pods.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/tests/api/multiple-pods.js b/server/tests/api/multiple-pods.js
index 770cee035..be278d7c5 100644
--- a/server/tests/api/multiple-pods.js
+++ b/server/tests/api/multiple-pods.js
@@ -100,7 +100,7 @@ describe('Test multiple pods', function () {
100 const video = videos[0] 100 const video = videos[0]
101 expect(video.name).to.equal('my super name for pod 1') 101 expect(video.name).to.equal('my super name for pod 1')
102 expect(video.description).to.equal('my super description for pod 1') 102 expect(video.description).to.equal('my super description for pod 1')
103 expect(video.podUrl).to.equal('localhost:9001') 103 expect(video.podHost).to.equal('localhost:9001')
104 expect(video.magnetUri).to.exist 104 expect(video.magnetUri).to.exist
105 expect(video.duration).to.equal(10) 105 expect(video.duration).to.equal(10)
106 expect(video.tags).to.deep.equal([ 'tag1p1', 'tag2p1' ]) 106 expect(video.tags).to.deep.equal([ 'tag1p1', 'tag2p1' ])
@@ -162,7 +162,7 @@ describe('Test multiple pods', function () {
162 const video = videos[1] 162 const video = videos[1]
163 expect(video.name).to.equal('my super name for pod 2') 163 expect(video.name).to.equal('my super name for pod 2')
164 expect(video.description).to.equal('my super description for pod 2') 164 expect(video.description).to.equal('my super description for pod 2')
165 expect(video.podUrl).to.equal('localhost:9002') 165 expect(video.podHost).to.equal('localhost:9002')
166 expect(video.magnetUri).to.exist 166 expect(video.magnetUri).to.exist
167 expect(video.duration).to.equal(5) 167 expect(video.duration).to.equal(5)
168 expect(video.tags).to.deep.equal([ 'tag1p2', 'tag2p2', 'tag3p2' ]) 168 expect(video.tags).to.deep.equal([ 'tag1p2', 'tag2p2', 'tag3p2' ])
@@ -241,7 +241,7 @@ describe('Test multiple pods', function () {
241 241
242 expect(video1.name).to.equal('my super name for pod 3') 242 expect(video1.name).to.equal('my super name for pod 3')
243 expect(video1.description).to.equal('my super description for pod 3') 243 expect(video1.description).to.equal('my super description for pod 3')
244 expect(video1.podUrl).to.equal('localhost:9003') 244 expect(video1.podHost).to.equal('localhost:9003')
245 expect(video1.magnetUri).to.exist 245 expect(video1.magnetUri).to.exist
246 expect(video1.duration).to.equal(5) 246 expect(video1.duration).to.equal(5)
247 expect(video1.tags).to.deep.equal([ 'tag1p3' ]) 247 expect(video1.tags).to.deep.equal([ 'tag1p3' ])
@@ -250,7 +250,7 @@ describe('Test multiple pods', function () {
250 250
251 expect(video2.name).to.equal('my super name for pod 3-2') 251 expect(video2.name).to.equal('my super name for pod 3-2')
252 expect(video2.description).to.equal('my super description for pod 3-2') 252 expect(video2.description).to.equal('my super description for pod 3-2')
253 expect(video2.podUrl).to.equal('localhost:9003') 253 expect(video2.podHost).to.equal('localhost:9003')
254 expect(video2.magnetUri).to.exist 254 expect(video2.magnetUri).to.exist
255 expect(video2.duration).to.equal(5) 255 expect(video2.duration).to.equal(5)
256 expect(video2.tags).to.deep.equal([ 'tag2p3', 'tag3p3', 'tag4p3' ]) 256 expect(video2.tags).to.deep.equal([ 'tag2p3', 'tag3p3', 'tag4p3' ])