aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/multiple-pods.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/multiple-pods.js')
-rw-r--r--server/tests/api/multiple-pods.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/tests/api/multiple-pods.js b/server/tests/api/multiple-pods.js
index 672187068..4442a7ff7 100644
--- a/server/tests/api/multiple-pods.js
+++ b/server/tests/api/multiple-pods.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(miscsUtils.dateIsValid(video.createdAt)).to.be.true 107 expect(miscsUtils.dateIsValid(video.createdAt)).to.be.true
108 expect(miscsUtils.dateIsValid(video.updatedAt)).to.be.true
108 expect(video.author).to.equal('root') 109 expect(video.author).to.equal('root')
109 110
110 if (server.url !== 'http://localhost:9001') { 111 if (server.url !== 'http://localhost:9001') {
@@ -167,6 +168,7 @@ describe('Test multiple pods', function () {
167 expect(video.duration).to.equal(5) 168 expect(video.duration).to.equal(5)
168 expect(video.tags).to.deep.equal([ 'tag1p2', 'tag2p2', 'tag3p2' ]) 169 expect(video.tags).to.deep.equal([ 'tag1p2', 'tag2p2', 'tag3p2' ])
169 expect(miscsUtils.dateIsValid(video.createdAt)).to.be.true 170 expect(miscsUtils.dateIsValid(video.createdAt)).to.be.true
171 expect(miscsUtils.dateIsValid(video.updatedAt)).to.be.true
170 expect(video.author).to.equal('root') 172 expect(video.author).to.equal('root')
171 173
172 if (server.url !== 'http://localhost:9002') { 174 if (server.url !== 'http://localhost:9002') {
@@ -247,6 +249,7 @@ describe('Test multiple pods', function () {
247 expect(video1.tags).to.deep.equal([ 'tag1p3' ]) 249 expect(video1.tags).to.deep.equal([ 'tag1p3' ])
248 expect(video1.author).to.equal('root') 250 expect(video1.author).to.equal('root')
249 expect(miscsUtils.dateIsValid(video1.createdAt)).to.be.true 251 expect(miscsUtils.dateIsValid(video1.createdAt)).to.be.true
252 expect(miscsUtils.dateIsValid(video1.updatedAt)).to.be.true
250 253
251 expect(video2.name).to.equal('my super name for pod 3-2') 254 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') 255 expect(video2.description).to.equal('my super description for pod 3-2')
@@ -256,6 +259,7 @@ describe('Test multiple pods', function () {
256 expect(video2.tags).to.deep.equal([ 'tag2p3', 'tag3p3', 'tag4p3' ]) 259 expect(video2.tags).to.deep.equal([ 'tag2p3', 'tag3p3', 'tag4p3' ])
257 expect(video2.author).to.equal('root') 260 expect(video2.author).to.equal('root')
258 expect(miscsUtils.dateIsValid(video2.createdAt)).to.be.true 261 expect(miscsUtils.dateIsValid(video2.createdAt)).to.be.true
262 expect(miscsUtils.dateIsValid(video2.updatedAt)).to.be.true
259 263
260 if (server.url !== 'http://localhost:9003') { 264 if (server.url !== 'http://localhost:9003') {
261 expect(video1.isLocal).to.be.false 265 expect(video1.isLocal).to.be.false
@@ -398,6 +402,7 @@ describe('Test multiple pods', function () {
398 expect(!!videoUpdated).to.be.true 402 expect(!!videoUpdated).to.be.true
399 expect(videoUpdated.description).to.equal('my super description updated') 403 expect(videoUpdated.description).to.equal('my super description updated')
400 expect(videoUpdated.tags).to.deep.equal([ 'tagup1', 'tagup2' ]) 404 expect(videoUpdated.tags).to.deep.equal([ 'tagup1', 'tagup2' ])
405 expect(miscsUtils.dateIsValid(videoUpdated.updatedAt, 20000)).to.be.true
401 406
402 callback() 407 callback()
403 }) 408 })