diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-05-13 20:42:11 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-05-13 20:42:11 +0200 |
commit | bb10240ee15d31a1cc17c0e3d748dde817e7d0cb (patch) | |
tree | d8063b68473aaf1c5f1debc241ebf0d3cb3e7391 /server/tests/api/singlePod.js | |
parent | 3fe81fa75eef5320876441539ab89988a04a6c49 (diff) | |
download | PeerTube-bb10240ee15d31a1cc17c0e3d748dde817e7d0cb.tar.gz PeerTube-bb10240ee15d31a1cc17c0e3d748dde817e7d0cb.tar.zst PeerTube-bb10240ee15d31a1cc17c0e3d748dde817e7d0cb.zip |
Add createdDate to videos
Diffstat (limited to 'server/tests/api/singlePod.js')
-rw-r--r-- | server/tests/api/singlePod.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/tests/api/singlePod.js b/server/tests/api/singlePod.js index d377bdf45..72002b631 100644 --- a/server/tests/api/singlePod.js +++ b/server/tests/api/singlePod.js | |||
@@ -76,6 +76,7 @@ describe('Test a single pod', function () { | |||
76 | expect(video.magnetUri).to.exist | 76 | expect(video.magnetUri).to.exist |
77 | expect(video.author).to.equal('root') | 77 | expect(video.author).to.equal('root') |
78 | expect(video.isLocal).to.be.true | 78 | expect(video.isLocal).to.be.true |
79 | expect(utils.dateIsValid(video.createdDate)).to.be.true | ||
79 | 80 | ||
80 | utils.testImage(server.url, 'video_short.webm', video.thumbnailPath, function (err, test) { | 81 | utils.testImage(server.url, 'video_short.webm', video.thumbnailPath, function (err, test) { |
81 | if (err) throw err | 82 | if (err) throw err |
@@ -109,6 +110,7 @@ describe('Test a single pod', function () { | |||
109 | expect(video.magnetUri).to.exist | 110 | expect(video.magnetUri).to.exist |
110 | expect(video.author).to.equal('root') | 111 | expect(video.author).to.equal('root') |
111 | expect(video.isLocal).to.be.true | 112 | expect(video.isLocal).to.be.true |
113 | expect(utils.dateIsValid(video.createdDate)).to.be.true | ||
112 | 114 | ||
113 | utils.testImage(server.url, 'video_short.webm', video.thumbnailPath, function (err, test) { | 115 | utils.testImage(server.url, 'video_short.webm', video.thumbnailPath, function (err, test) { |
114 | if (err) throw err | 116 | if (err) throw err |
@@ -138,6 +140,7 @@ describe('Test a single pod', function () { | |||
138 | expect(video.podUrl).to.equal('http://localhost:9001') | 140 | expect(video.podUrl).to.equal('http://localhost:9001') |
139 | expect(video.author).to.equal('root') | 141 | expect(video.author).to.equal('root') |
140 | expect(video.isLocal).to.be.true | 142 | expect(video.isLocal).to.be.true |
143 | expect(utils.dateIsValid(video.createdDate)).to.be.true | ||
141 | 144 | ||
142 | utils.testImage(server.url, 'video_short.webm', video.thumbnailPath, function (err, test) { | 145 | utils.testImage(server.url, 'video_short.webm', video.thumbnailPath, function (err, test) { |
143 | if (err) throw err | 146 | if (err) throw err |