aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/singlePod.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-05-03 21:03:51 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-05-03 21:03:51 +0200
commit6d8ada5f24b245d3c84d29d65013f5315cbeff27 (patch)
tree2b4fdb38353279927c013219c03cbbe109086931 /server/tests/api/singlePod.js
parent17c912d9b111eb4af3ff171a23dc866f76dc4fab (diff)
downloadPeerTube-6d8ada5f24b245d3c84d29d65013f5315cbeff27.tar.gz
PeerTube-6d8ada5f24b245d3c84d29d65013f5315cbeff27.tar.zst
PeerTube-6d8ada5f24b245d3c84d29d65013f5315cbeff27.zip
Better tests for a better world
Diffstat (limited to 'server/tests/api/singlePod.js')
-rw-r--r--server/tests/api/singlePod.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/server/tests/api/singlePod.js b/server/tests/api/singlePod.js
index 64d5475dd..efd8a64bc 100644
--- a/server/tests/api/singlePod.js
+++ b/server/tests/api/singlePod.js
@@ -72,6 +72,8 @@ describe('Test a single pod', function () {
72 expect(video.description).to.equal('my super description') 72 expect(video.description).to.equal('my super description')
73 expect(video.podUrl).to.equal('http://localhost:9001') 73 expect(video.podUrl).to.equal('http://localhost:9001')
74 expect(video.magnetUri).to.exist 74 expect(video.magnetUri).to.exist
75 expect(video.author).to.equal('root')
76 expect(video.isLocal).to.be.true
75 77
76 video_id = video.id 78 video_id = video.id
77 79
@@ -97,6 +99,8 @@ describe('Test a single pod', function () {
97 expect(video.description).to.equal('my super description') 99 expect(video.description).to.equal('my super description')
98 expect(video.podUrl).to.equal('http://localhost:9001') 100 expect(video.podUrl).to.equal('http://localhost:9001')
99 expect(video.magnetUri).to.exist 101 expect(video.magnetUri).to.exist
102 expect(video.author).to.equal('root')
103 expect(video.isLocal).to.be.true
100 104
101 webtorrent.add(video.magnetUri, function (torrent) { 105 webtorrent.add(video.magnetUri, function (torrent) {
102 expect(torrent.files).to.exist 106 expect(torrent.files).to.exist
@@ -119,6 +123,8 @@ describe('Test a single pod', function () {
119 expect(video.name).to.equal('my super name') 123 expect(video.name).to.equal('my super name')
120 expect(video.description).to.equal('my super description') 124 expect(video.description).to.equal('my super description')
121 expect(video.podUrl).to.equal('http://localhost:9001') 125 expect(video.podUrl).to.equal('http://localhost:9001')
126 expect(video.author).to.equal('root')
127 expect(video.isLocal).to.be.true
122 128
123 done() 129 done()
124 }) 130 })