aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/multiplePods.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-05-13 20:42:11 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-05-13 20:42:11 +0200
commitbb10240ee15d31a1cc17c0e3d748dde817e7d0cb (patch)
treed8063b68473aaf1c5f1debc241ebf0d3cb3e7391 /server/tests/api/multiplePods.js
parent3fe81fa75eef5320876441539ab89988a04a6c49 (diff)
downloadPeerTube-bb10240ee15d31a1cc17c0e3d748dde817e7d0cb.tar.gz
PeerTube-bb10240ee15d31a1cc17c0e3d748dde817e7d0cb.tar.zst
PeerTube-bb10240ee15d31a1cc17c0e3d748dde817e7d0cb.zip
Add createdDate to videos
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 51e7fb3d1..c31c18b02 100644
--- a/server/tests/api/multiplePods.js
+++ b/server/tests/api/multiplePods.js
@@ -98,6 +98,7 @@ describe('Test multiple pods', function () {
98 expect(video.podUrl).to.equal('http://localhost:9001') 98 expect(video.podUrl).to.equal('http://localhost:9001')
99 expect(video.magnetUri).to.exist 99 expect(video.magnetUri).to.exist
100 expect(video.duration).to.equal(10) 100 expect(video.duration).to.equal(10)
101 expect(utils.dateIsValid(video.createdDate)).to.be.true
101 102
102 if (server.url !== 'http://localhost:9001') { 103 if (server.url !== 'http://localhost:9001') {
103 expect(video.isLocal).to.be.false 104 expect(video.isLocal).to.be.false
@@ -153,6 +154,7 @@ describe('Test multiple pods', function () {
153 expect(video.podUrl).to.equal('http://localhost:9002') 154 expect(video.podUrl).to.equal('http://localhost:9002')
154 expect(video.magnetUri).to.exist 155 expect(video.magnetUri).to.exist
155 expect(video.duration).to.equal(5) 156 expect(video.duration).to.equal(5)
157 expect(utils.dateIsValid(video.createdDate)).to.be.true
156 158
157 if (server.url !== 'http://localhost:9002') { 159 if (server.url !== 'http://localhost:9002') {
158 expect(video.isLocal).to.be.false 160 expect(video.isLocal).to.be.false
@@ -221,12 +223,14 @@ describe('Test multiple pods', function () {
221 expect(video1.podUrl).to.equal('http://localhost:9003') 223 expect(video1.podUrl).to.equal('http://localhost:9003')
222 expect(video1.magnetUri).to.exist 224 expect(video1.magnetUri).to.exist
223 expect(video1.duration).to.equal(5) 225 expect(video1.duration).to.equal(5)
226 expect(utils.dateIsValid(video1.createdDate)).to.be.true
224 227
225 expect(video2.name).to.equal('my super name for pod 3-2') 228 expect(video2.name).to.equal('my super name for pod 3-2')
226 expect(video2.description).to.equal('my super description for pod 3-2') 229 expect(video2.description).to.equal('my super description for pod 3-2')
227 expect(video2.podUrl).to.equal('http://localhost:9003') 230 expect(video2.podUrl).to.equal('http://localhost:9003')
228 expect(video2.magnetUri).to.exist 231 expect(video2.magnetUri).to.exist
229 expect(video2.duration).to.equal(5) 232 expect(video2.duration).to.equal(5)
233 expect(utils.dateIsValid(video2.createdDate)).to.be.true
230 234
231 if (server.url !== 'http://localhost:9003') { 235 if (server.url !== 'http://localhost:9003') {
232 expect(video1.isLocal).to.be.false 236 expect(video1.isLocal).to.be.false