diff options
Diffstat (limited to 'server/tests/api/notifications')
-rw-r--r-- | server/tests/api/notifications/comments-notifications.ts | 4 | ||||
-rw-r--r-- | server/tests/api/notifications/notifications-api.ts | 4 | ||||
-rw-r--r-- | server/tests/api/notifications/user-notifications.ts | 4 |
3 files changed, 3 insertions, 9 deletions
diff --git a/server/tests/api/notifications/comments-notifications.ts b/server/tests/api/notifications/comments-notifications.ts index 7bbec736b..4214687f8 100644 --- a/server/tests/api/notifications/comments-notifications.ts +++ b/server/tests/api/notifications/comments-notifications.ts | |||
@@ -1,6 +1,6 @@ | |||
1 | /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ | 1 | /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ |
2 | 2 | ||
3 | import * as chai from 'chai' | 3 | import { expect } from 'chai' |
4 | import { | 4 | import { |
5 | checkCommentMention, | 5 | checkCommentMention, |
6 | CheckerBaseParams, | 6 | CheckerBaseParams, |
@@ -11,8 +11,6 @@ import { | |||
11 | import { UserNotification } from '@shared/models' | 11 | import { UserNotification } from '@shared/models' |
12 | import { cleanupTests, PeerTubeServer, waitJobs } from '@shared/server-commands' | 12 | import { cleanupTests, PeerTubeServer, waitJobs } from '@shared/server-commands' |
13 | 13 | ||
14 | const expect = chai.expect | ||
15 | |||
16 | describe('Test comments notifications', function () { | 14 | describe('Test comments notifications', function () { |
17 | let servers: PeerTubeServer[] = [] | 15 | let servers: PeerTubeServer[] = [] |
18 | let userToken: string | 16 | let userToken: string |
diff --git a/server/tests/api/notifications/notifications-api.ts b/server/tests/api/notifications/notifications-api.ts index e5d883538..f194656c9 100644 --- a/server/tests/api/notifications/notifications-api.ts +++ b/server/tests/api/notifications/notifications-api.ts | |||
@@ -1,6 +1,6 @@ | |||
1 | /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ | 1 | /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ |
2 | 2 | ||
3 | import * as chai from 'chai' | 3 | import { expect } from 'chai' |
4 | import { | 4 | import { |
5 | CheckerBaseParams, | 5 | CheckerBaseParams, |
6 | checkNewVideoFromSubscription, | 6 | checkNewVideoFromSubscription, |
@@ -11,8 +11,6 @@ import { | |||
11 | import { UserNotification, UserNotificationSettingValue } from '@shared/models' | 11 | import { UserNotification, UserNotificationSettingValue } from '@shared/models' |
12 | import { cleanupTests, PeerTubeServer, waitJobs } from '@shared/server-commands' | 12 | import { cleanupTests, PeerTubeServer, waitJobs } from '@shared/server-commands' |
13 | 13 | ||
14 | const expect = chai.expect | ||
15 | |||
16 | describe('Test notifications API', function () { | 14 | describe('Test notifications API', function () { |
17 | let server: PeerTubeServer | 15 | let server: PeerTubeServer |
18 | let userNotifications: UserNotification[] = [] | 16 | let userNotifications: UserNotification[] = [] |
diff --git a/server/tests/api/notifications/user-notifications.ts b/server/tests/api/notifications/user-notifications.ts index ca5e15738..c05f3330a 100644 --- a/server/tests/api/notifications/user-notifications.ts +++ b/server/tests/api/notifications/user-notifications.ts | |||
@@ -1,6 +1,6 @@ | |||
1 | /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ | 1 | /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ |
2 | 2 | ||
3 | import * as chai from 'chai' | 3 | import { expect } from 'chai' |
4 | import { | 4 | import { |
5 | CheckerBaseParams, | 5 | CheckerBaseParams, |
6 | checkMyVideoImportIsFinished, | 6 | checkMyVideoImportIsFinished, |
@@ -18,8 +18,6 @@ import { buildUUID } from '@shared/extra-utils' | |||
18 | import { UserNotification, UserNotificationType, VideoPrivacy, VideoStudioTask } from '@shared/models' | 18 | import { UserNotification, UserNotificationType, VideoPrivacy, VideoStudioTask } from '@shared/models' |
19 | import { cleanupTests, findExternalSavedVideo, PeerTubeServer, stopFfmpeg, waitJobs } from '@shared/server-commands' | 19 | import { cleanupTests, findExternalSavedVideo, PeerTubeServer, stopFfmpeg, waitJobs } from '@shared/server-commands' |
20 | 20 | ||
21 | const expect = chai.expect | ||
22 | |||
23 | describe('Test user notifications', function () { | 21 | describe('Test user notifications', function () { |
24 | let servers: PeerTubeServer[] = [] | 22 | let servers: PeerTubeServer[] = [] |
25 | let userAccessToken: string | 23 | let userAccessToken: string |