aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/notifications
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-08-17 15:44:32 +0200
committerChocobozzz <me@florianbigard.com>2022-08-17 15:47:54 +0200
commit863477173efa82a4412d2e522aa46462249f9199 (patch)
tree40f0ae28691780d79acef5ba4dbd2ef0694ce8ff /server/tests/api/notifications
parente0faa8ad6e18ce6248ef1ec93a59dab5b05be468 (diff)
downloadPeerTube-863477173efa82a4412d2e522aa46462249f9199.tar.gz
PeerTube-863477173efa82a4412d2e522aa46462249f9199.tar.zst
PeerTube-863477173efa82a4412d2e522aa46462249f9199.zip
Cleanup tests imports
Diffstat (limited to 'server/tests/api/notifications')
-rw-r--r--server/tests/api/notifications/comments-notifications.ts4
-rw-r--r--server/tests/api/notifications/notifications-api.ts4
-rw-r--r--server/tests/api/notifications/user-notifications.ts4
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
3import * as chai from 'chai' 3import { expect } from 'chai'
4import { 4import {
5 checkCommentMention, 5 checkCommentMention,
6 CheckerBaseParams, 6 CheckerBaseParams,
@@ -11,8 +11,6 @@ import {
11import { UserNotification } from '@shared/models' 11import { UserNotification } from '@shared/models'
12import { cleanupTests, PeerTubeServer, waitJobs } from '@shared/server-commands' 12import { cleanupTests, PeerTubeServer, waitJobs } from '@shared/server-commands'
13 13
14const expect = chai.expect
15
16describe('Test comments notifications', function () { 14describe('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
3import * as chai from 'chai' 3import { expect } from 'chai'
4import { 4import {
5 CheckerBaseParams, 5 CheckerBaseParams,
6 checkNewVideoFromSubscription, 6 checkNewVideoFromSubscription,
@@ -11,8 +11,6 @@ import {
11import { UserNotification, UserNotificationSettingValue } from '@shared/models' 11import { UserNotification, UserNotificationSettingValue } from '@shared/models'
12import { cleanupTests, PeerTubeServer, waitJobs } from '@shared/server-commands' 12import { cleanupTests, PeerTubeServer, waitJobs } from '@shared/server-commands'
13 13
14const expect = chai.expect
15
16describe('Test notifications API', function () { 14describe('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
3import * as chai from 'chai' 3import { expect } from 'chai'
4import { 4import {
5 CheckerBaseParams, 5 CheckerBaseParams,
6 checkMyVideoImportIsFinished, 6 checkMyVideoImportIsFinished,
@@ -18,8 +18,6 @@ import { buildUUID } from '@shared/extra-utils'
18import { UserNotification, UserNotificationType, VideoPrivacy, VideoStudioTask } from '@shared/models' 18import { UserNotification, UserNotificationType, VideoPrivacy, VideoStudioTask } from '@shared/models'
19import { cleanupTests, findExternalSavedVideo, PeerTubeServer, stopFfmpeg, waitJobs } from '@shared/server-commands' 19import { cleanupTests, findExternalSavedVideo, PeerTubeServer, stopFfmpeg, waitJobs } from '@shared/server-commands'
20 20
21const expect = chai.expect
22
23describe('Test user notifications', function () { 21describe('Test user notifications', function () {
24 let servers: PeerTubeServer[] = [] 22 let servers: PeerTubeServer[] = []
25 let userAccessToken: string 23 let userAccessToken: string