aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/friends-basic.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-10-24 19:41:30 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-10-26 09:11:38 +0200
commit5f04dd2f743961e0a06c29531cc3ccc9e4928d56 (patch)
treea73085d0d83affc2377b78a2c7c25bda08d26388 /server/tests/api/friends-basic.ts
parent72c7248b6fdcdb2175e726ff51b42e7555f2bd84 (diff)
downloadPeerTube-5f04dd2f743961e0a06c29531cc3ccc9e4928d56.tar.gz
PeerTube-5f04dd2f743961e0a06c29531cc3ccc9e4928d56.tar.zst
PeerTube-5f04dd2f743961e0a06c29531cc3ccc9e4928d56.zip
Add video channel tests
Diffstat (limited to 'server/tests/api/friends-basic.ts')
-rw-r--r--server/tests/api/friends-basic.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/tests/api/friends-basic.ts b/server/tests/api/friends-basic.ts
index efca4fda2..31e180631 100644
--- a/server/tests/api/friends-basic.ts
+++ b/server/tests/api/friends-basic.ts
@@ -87,7 +87,7 @@ describe('Test basic friends', function () {
87 const pod1 = friends[0] 87 const pod1 = friends[0]
88 expect(pod1.host).to.equal(servers[2].host) 88 expect(pod1.host).to.equal(servers[2].host)
89 expect(pod1.email).to.equal('admin3@example.com') 89 expect(pod1.email).to.equal('admin3@example.com')
90 expect(pod1.score).to.equal(20) 90 expect(pod1.score).to.be.at.least(20)
91 expect(dateIsValid(pod1.createdAt)).to.be.true 91 expect(dateIsValid(pod1.createdAt)).to.be.true
92 92
93 // Same here, the third pod should have the second pod as a friend 93 // Same here, the third pod should have the second pod as a friend
@@ -99,7 +99,7 @@ describe('Test basic friends', function () {
99 const pod2 = result[0] 99 const pod2 = result[0]
100 expect(pod2.host).to.equal(servers[1].host) 100 expect(pod2.host).to.equal(servers[1].host)
101 expect(pod2.email).to.equal('admin2@example.com') 101 expect(pod2.email).to.equal('admin2@example.com')
102 expect(pod2.score).to.equal(20) 102 expect(pod2.score).to.be.at.least(20)
103 expect(dateIsValid(pod2.createdAt)).to.be.true 103 expect(dateIsValid(pod2.createdAt)).to.be.true
104 104
105 // Finally the first pod make friend with the second pod 105 // Finally the first pod make friend with the second pod
@@ -133,7 +133,7 @@ describe('Test basic friends', function () {
133 const pod = res.body.data[0] 133 const pod = res.body.data[0]
134 expect(pod.host).to.equal('localhost:9002') 134 expect(pod.host).to.equal('localhost:9002')
135 expect(pod.email).to.equal('admin2@example.com') 135 expect(pod.email).to.equal('admin2@example.com')
136 expect(pod.score).to.equal(20) 136 expect(pod.score).to.be.at.least(20)
137 expect(dateIsValid(pod.createdAt)).to.be.true 137 expect(dateIsValid(pod.createdAt)).to.be.true
138 }) 138 })
139 139