diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-16 09:47:51 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:18 +0200 |
commit | 254d3579f5338f5fd775c17d15cdfc37078bcfb4 (patch) | |
tree | eaeb13fda16c16e98cd6991d202b0ca6a4cbdb63 /server/tests/api/notifications | |
parent | 89d241a79c262b9775c233b73cff080043ebb5e6 (diff) | |
download | PeerTube-254d3579f5338f5fd775c17d15cdfc37078bcfb4.tar.gz PeerTube-254d3579f5338f5fd775c17d15cdfc37078bcfb4.tar.zst PeerTube-254d3579f5338f5fd775c17d15cdfc37078bcfb4.zip |
Use an object to represent a server
Diffstat (limited to 'server/tests/api/notifications')
5 files changed, 10 insertions, 10 deletions
diff --git a/server/tests/api/notifications/admin-notifications.ts b/server/tests/api/notifications/admin-notifications.ts index 5a5bdb0c8..d65551f0a 100644 --- a/server/tests/api/notifications/admin-notifications.ts +++ b/server/tests/api/notifications/admin-notifications.ts | |||
@@ -10,13 +10,13 @@ import { | |||
10 | MockJoinPeerTubeVersions, | 10 | MockJoinPeerTubeVersions, |
11 | MockSmtpServer, | 11 | MockSmtpServer, |
12 | prepareNotificationsTest, | 12 | prepareNotificationsTest, |
13 | ServerInfo, | 13 | PeerTubeServer, |
14 | wait | 14 | wait |
15 | } from '@shared/extra-utils' | 15 | } from '@shared/extra-utils' |
16 | import { PluginType, UserNotification, UserNotificationType } from '@shared/models' | 16 | import { PluginType, UserNotification, UserNotificationType } from '@shared/models' |
17 | 17 | ||
18 | describe('Test admin notifications', function () { | 18 | describe('Test admin notifications', function () { |
19 | let server: ServerInfo | 19 | let server: PeerTubeServer |
20 | let userNotifications: UserNotification[] = [] | 20 | let userNotifications: UserNotification[] = [] |
21 | let adminNotifications: UserNotification[] = [] | 21 | let adminNotifications: UserNotification[] = [] |
22 | let emails: object[] = [] | 22 | let emails: object[] = [] |
diff --git a/server/tests/api/notifications/comments-notifications.ts b/server/tests/api/notifications/comments-notifications.ts index 133b6340f..d54819aaa 100644 --- a/server/tests/api/notifications/comments-notifications.ts +++ b/server/tests/api/notifications/comments-notifications.ts | |||
@@ -9,7 +9,7 @@ import { | |||
9 | cleanupTests, | 9 | cleanupTests, |
10 | MockSmtpServer, | 10 | MockSmtpServer, |
11 | prepareNotificationsTest, | 11 | prepareNotificationsTest, |
12 | ServerInfo, | 12 | PeerTubeServer, |
13 | waitJobs | 13 | waitJobs |
14 | } from '@shared/extra-utils' | 14 | } from '@shared/extra-utils' |
15 | import { UserNotification } from '@shared/models' | 15 | import { UserNotification } from '@shared/models' |
@@ -17,7 +17,7 @@ import { UserNotification } from '@shared/models' | |||
17 | const expect = chai.expect | 17 | const expect = chai.expect |
18 | 18 | ||
19 | describe('Test comments notifications', function () { | 19 | describe('Test comments notifications', function () { |
20 | let servers: ServerInfo[] = [] | 20 | let servers: PeerTubeServer[] = [] |
21 | let userToken: string | 21 | let userToken: string |
22 | let userNotifications: UserNotification[] = [] | 22 | let userNotifications: UserNotification[] = [] |
23 | let emails: object[] = [] | 23 | let emails: object[] = [] |
diff --git a/server/tests/api/notifications/moderation-notifications.ts b/server/tests/api/notifications/moderation-notifications.ts index e7c5badd2..3a294192b 100644 --- a/server/tests/api/notifications/moderation-notifications.ts +++ b/server/tests/api/notifications/moderation-notifications.ts | |||
@@ -20,14 +20,14 @@ import { | |||
20 | MockInstancesIndex, | 20 | MockInstancesIndex, |
21 | MockSmtpServer, | 21 | MockSmtpServer, |
22 | prepareNotificationsTest, | 22 | prepareNotificationsTest, |
23 | ServerInfo, | 23 | PeerTubeServer, |
24 | wait, | 24 | wait, |
25 | waitJobs | 25 | waitJobs |
26 | } from '@shared/extra-utils' | 26 | } from '@shared/extra-utils' |
27 | import { AbuseState, CustomConfig, UserNotification, VideoPrivacy } from '@shared/models' | 27 | import { AbuseState, CustomConfig, UserNotification, VideoPrivacy } from '@shared/models' |
28 | 28 | ||
29 | describe('Test moderation notifications', function () { | 29 | describe('Test moderation notifications', function () { |
30 | let servers: ServerInfo[] = [] | 30 | let servers: PeerTubeServer[] = [] |
31 | let userAccessToken: string | 31 | let userAccessToken: string |
32 | let userNotifications: UserNotification[] = [] | 32 | let userNotifications: UserNotification[] = [] |
33 | let adminNotifications: UserNotification[] = [] | 33 | let adminNotifications: UserNotification[] = [] |
diff --git a/server/tests/api/notifications/notifications-api.ts b/server/tests/api/notifications/notifications-api.ts index 647d783b5..178b20687 100644 --- a/server/tests/api/notifications/notifications-api.ts +++ b/server/tests/api/notifications/notifications-api.ts | |||
@@ -9,7 +9,7 @@ import { | |||
9 | getAllNotificationsSettings, | 9 | getAllNotificationsSettings, |
10 | MockSmtpServer, | 10 | MockSmtpServer, |
11 | prepareNotificationsTest, | 11 | prepareNotificationsTest, |
12 | ServerInfo, | 12 | PeerTubeServer, |
13 | waitJobs | 13 | waitJobs |
14 | } from '@shared/extra-utils' | 14 | } from '@shared/extra-utils' |
15 | import { UserNotification, UserNotificationSettingValue } from '@shared/models' | 15 | import { UserNotification, UserNotificationSettingValue } from '@shared/models' |
@@ -17,7 +17,7 @@ import { UserNotification, UserNotificationSettingValue } from '@shared/models' | |||
17 | const expect = chai.expect | 17 | const expect = chai.expect |
18 | 18 | ||
19 | describe('Test notifications API', function () { | 19 | describe('Test notifications API', function () { |
20 | let server: ServerInfo | 20 | let server: PeerTubeServer |
21 | let userNotifications: UserNotification[] = [] | 21 | let userNotifications: UserNotification[] = [] |
22 | let userToken: string | 22 | let userToken: string |
23 | let emails: object[] = [] | 23 | let emails: object[] = [] |
diff --git a/server/tests/api/notifications/user-notifications.ts b/server/tests/api/notifications/user-notifications.ts index 53f8c7594..b7c22d118 100644 --- a/server/tests/api/notifications/user-notifications.ts +++ b/server/tests/api/notifications/user-notifications.ts | |||
@@ -13,7 +13,7 @@ import { | |||
13 | ImportsCommand, | 13 | ImportsCommand, |
14 | MockSmtpServer, | 14 | MockSmtpServer, |
15 | prepareNotificationsTest, | 15 | prepareNotificationsTest, |
16 | ServerInfo, | 16 | PeerTubeServer, |
17 | uploadRandomVideoOnServers, | 17 | uploadRandomVideoOnServers, |
18 | wait, | 18 | wait, |
19 | waitJobs | 19 | waitJobs |
@@ -23,7 +23,7 @@ import { UserNotification, UserNotificationType, VideoPrivacy } from '@shared/mo | |||
23 | const expect = chai.expect | 23 | const expect = chai.expect |
24 | 24 | ||
25 | describe('Test user notifications', function () { | 25 | describe('Test user notifications', function () { |
26 | let servers: ServerInfo[] = [] | 26 | let servers: PeerTubeServer[] = [] |
27 | let userAccessToken: string | 27 | let userAccessToken: string |
28 | let userNotifications: UserNotification[] = [] | 28 | let userNotifications: UserNotification[] = [] |
29 | let adminNotifications: UserNotification[] = [] | 29 | let adminNotifications: UserNotification[] = [] |