From 9b39106d5757caf221a88e42e05167a6fac479c6 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 21 Feb 2019 14:28:06 +0100 Subject: findById -> findByPk --- server/tests/api/check-params/user-subscriptions.ts | 2 +- server/tests/api/server/email.ts | 3 ++- server/tests/api/server/follows.ts | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) (limited to 'server/tests/api') 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 () { }) }) - describe('When checking if subscriptions exist', async function () { + describe('When checking if subscriptions exist', function () { const existPath = path + '/exist' 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 () { }) }) - describe('When blocking/unblocking user', async function () { + describe('When blocking/unblocking user', function () { + it('Should send the notification email when blocking a user', async function () { this.timeout(10000) 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 () { expect(res.body.data[0].name).to.equal('server3') }) - describe('Should propagate data on a new following', async function () { + describe('Should propagate data on a new following', function () { let video4: Video before(async function () { -- cgit v1.2.3