aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/moderation/blocklist-notification.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/moderation/blocklist-notification.ts')
-rw-r--r--server/tests/api/moderation/blocklist-notification.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/tests/api/moderation/blocklist-notification.ts b/server/tests/api/moderation/blocklist-notification.ts
index 6b56fdd65..fdfbcbced 100644
--- a/server/tests/api/moderation/blocklist-notification.ts
+++ b/server/tests/api/moderation/blocklist-notification.ts
@@ -2,12 +2,12 @@
2 2
3import 'mocha' 3import 'mocha'
4import * as chai from 'chai' 4import * as chai from 'chai'
5import { cleanupTests, doubleFollow, flushAndRunMultipleServers, ServerInfo, setAccessTokensToServers, waitJobs } from '@shared/extra-utils' 5import { cleanupTests, doubleFollow, createMultipleServers, PeerTubeServer, setAccessTokensToServers, waitJobs } from '@shared/extra-utils'
6import { UserNotificationType } from '@shared/models' 6import { UserNotificationType } from '@shared/models'
7 7
8const expect = chai.expect 8const expect = chai.expect
9 9
10async function checkNotifications (server: ServerInfo, token: string, expected: UserNotificationType[]) { 10async function checkNotifications (server: PeerTubeServer, token: string, expected: UserNotificationType[]) {
11 const { data } = await server.notifications.list({ token, start: 0, count: 10, unread: true }) 11 const { data } = await server.notifications.list({ token, start: 0, count: 10, unread: true })
12 expect(data).to.have.lengthOf(expected.length) 12 expect(data).to.have.lengthOf(expected.length)
13 13
@@ -17,7 +17,7 @@ async function checkNotifications (server: ServerInfo, token: string, expected:
17} 17}
18 18
19describe('Test blocklist', function () { 19describe('Test blocklist', function () {
20 let servers: ServerInfo[] 20 let servers: PeerTubeServer[]
21 let videoUUID: string 21 let videoUUID: string
22 22
23 let userToken1: string 23 let userToken1: string
@@ -62,7 +62,7 @@ describe('Test blocklist', function () {
62 before(async function () { 62 before(async function () {
63 this.timeout(60000) 63 this.timeout(60000)
64 64
65 servers = await flushAndRunMultipleServers(2) 65 servers = await createMultipleServers(2)
66 await setAccessTokensToServers(servers) 66 await setAccessTokensToServers(servers)
67 67
68 { 68 {