aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/friends-basic.ts
diff options
context:
space:
mode:
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