aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-02-21 14:28:06 +0100
committerChocobozzz <me@florianbigard.com>2019-02-21 14:40:10 +0100
commit9b39106d5757caf221a88e42e05167a6fac479c6 (patch)
treece3ac7907135d82ad13abf648eff4f963448227e /server/tests/api
parent374c1db98cf22527f5b362c70d3c50e3be4c8885 (diff)
downloadPeerTube-9b39106d5757caf221a88e42e05167a6fac479c6.tar.gz
PeerTube-9b39106d5757caf221a88e42e05167a6fac479c6.tar.zst
PeerTube-9b39106d5757caf221a88e42e05167a6fac479c6.zip
findById -> findByPk
Diffstat (limited to 'server/tests/api')
-rw-r--r--server/tests/api/check-params/user-subscriptions.ts2
-rw-r--r--server/tests/api/server/email.ts3
-rw-r--r--server/tests/api/server/follows.ts2
3 files changed, 4 insertions, 3 deletions
diff --git a/server/tests/api/check-params/user-subscriptions.ts b/server/tests/api/check-params/user-subscriptions.ts
index 8a9ced7c1..04a3eb97c 100644
--- a/server/tests/api/check-params/user-subscriptions.ts
+++ b/server/tests/api/check-params/user-subscriptions.ts
@@ -212,7 +212,7 @@ describe('Test user subscriptions API validators', function () {
212 }) 212 })
213 }) 213 })
214 214
215 describe('When checking if subscriptions exist', async function () { 215 describe('When checking if subscriptions exist', function () {
216 const existPath = path + '/exist' 216 const existPath = path + '/exist'
217 217
218 it('Should fail with a non authenticated user', async function () { 218 it('Should fail with a non authenticated user', async function () {
diff --git a/server/tests/api/server/email.ts b/server/tests/api/server/email.ts
index f8f16f54f..164905651 100644
--- a/server/tests/api/server/email.ts
+++ b/server/tests/api/server/email.ts
@@ -142,7 +142,8 @@ describe('Test emails', function () {
142 }) 142 })
143 }) 143 })
144 144
145 describe('When blocking/unblocking user', async function () { 145 describe('When blocking/unblocking user', function () {
146
146 it('Should send the notification email when blocking a user', async function () { 147 it('Should send the notification email when blocking a user', async function () {
147 this.timeout(10000) 148 this.timeout(10000)
148 149
diff --git a/server/tests/api/server/follows.ts b/server/tests/api/server/follows.ts
index ad4c87c73..80f54b7ad 100644
--- a/server/tests/api/server/follows.ts
+++ b/server/tests/api/server/follows.ts
@@ -241,7 +241,7 @@ describe('Test follows', function () {
241 expect(res.body.data[0].name).to.equal('server3') 241 expect(res.body.data[0].name).to.equal('server3')
242 }) 242 })
243 243
244 describe('Should propagate data on a new following', async function () { 244 describe('Should propagate data on a new following', function () {
245 let video4: Video 245 let video4: Video
246 246
247 before(async function () { 247 before(async function () {