aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/multiplePods.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/multiplePods.js')
-rw-r--r--server/tests/api/multiplePods.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/tests/api/multiplePods.js b/server/tests/api/multiplePods.js
index 40326c260..2a1bc64e6 100644
--- a/server/tests/api/multiplePods.js
+++ b/server/tests/api/multiplePods.js
@@ -105,6 +105,7 @@ describe('Test multiple pods', function () {
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' ])
107 expect(utils.dateIsValid(video.createdDate)).to.be.true 107 expect(utils.dateIsValid(video.createdDate)).to.be.true
108 expect(video.author).to.equal('root')
108 109
109 if (server.url !== 'http://localhost:9001') { 110 if (server.url !== 'http://localhost:9001') {
110 expect(video.isLocal).to.be.false 111 expect(video.isLocal).to.be.false
@@ -166,6 +167,7 @@ describe('Test multiple pods', function () {
166 expect(video.duration).to.equal(5) 167 expect(video.duration).to.equal(5)
167 expect(video.tags).to.deep.equal([ 'tag1p2', 'tag2p2', 'tag3p2' ]) 168 expect(video.tags).to.deep.equal([ 'tag1p2', 'tag2p2', 'tag3p2' ])
168 expect(utils.dateIsValid(video.createdDate)).to.be.true 169 expect(utils.dateIsValid(video.createdDate)).to.be.true
170 expect(video.author).to.equal('root')
169 171
170 if (server.url !== 'http://localhost:9002') { 172 if (server.url !== 'http://localhost:9002') {
171 expect(video.isLocal).to.be.false 173 expect(video.isLocal).to.be.false
@@ -243,6 +245,7 @@ describe('Test multiple pods', function () {
243 expect(video1.magnetUri).to.exist 245 expect(video1.magnetUri).to.exist
244 expect(video1.duration).to.equal(5) 246 expect(video1.duration).to.equal(5)
245 expect(video1.tags).to.deep.equal([ 'tag1p3' ]) 247 expect(video1.tags).to.deep.equal([ 'tag1p3' ])
248 expect(video1.author).to.equal('root')
246 expect(utils.dateIsValid(video1.createdDate)).to.be.true 249 expect(utils.dateIsValid(video1.createdDate)).to.be.true
247 250
248 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')
@@ -251,6 +254,7 @@ describe('Test multiple pods', function () {
251 expect(video2.magnetUri).to.exist 254 expect(video2.magnetUri).to.exist
252 expect(video2.duration).to.equal(5) 255 expect(video2.duration).to.equal(5)
253 expect(video2.tags).to.deep.equal([ 'tag2p3', 'tag3p3', 'tag4p3' ]) 256 expect(video2.tags).to.deep.equal([ 'tag2p3', 'tag3p3', 'tag4p3' ])
257 expect(video2.author).to.equal('root')
254 expect(utils.dateIsValid(video2.createdDate)).to.be.true 258 expect(utils.dateIsValid(video2.createdDate)).to.be.true
255 259
256 if (server.url !== 'http://localhost:9003') { 260 if (server.url !== 'http://localhost:9003') {