diff options
Diffstat (limited to 'server/tests/api/moderation/blocklist-notification.ts')
-rw-r--r-- | server/tests/api/moderation/blocklist-notification.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/server/tests/api/moderation/blocklist-notification.ts b/server/tests/api/moderation/blocklist-notification.ts index d5d0e5178..eb092a1df 100644 --- a/server/tests/api/moderation/blocklist-notification.ts +++ b/server/tests/api/moderation/blocklist-notification.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 { UserNotificationType } from '@shared/models' | 4 | import { UserNotificationType } from '@shared/models' |
5 | import { | 5 | import { |
6 | cleanupTests, | 6 | cleanupTests, |
@@ -11,8 +11,6 @@ import { | |||
11 | waitJobs | 11 | waitJobs |
12 | } from '@shared/server-commands' | 12 | } from '@shared/server-commands' |
13 | 13 | ||
14 | const expect = chai.expect | ||
15 | |||
16 | async function checkNotifications (server: PeerTubeServer, token: string, expected: UserNotificationType[]) { | 14 | async function checkNotifications (server: PeerTubeServer, token: string, expected: UserNotificationType[]) { |
17 | const { data } = await server.notifications.list({ token, start: 0, count: 10, unread: true }) | 15 | const { data } = await server.notifications.list({ token, start: 0, count: 10, unread: true }) |
18 | expect(data).to.have.lengthOf(expected.length) | 16 | expect(data).to.have.lengthOf(expected.length) |