]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/api/moderation/blocklist-notification.ts
Feature/filter already watched videos (#5739)
[github/Chocobozzz/PeerTube.git] / server / tests / api / moderation / blocklist-notification.ts
index 87d14799876112f9a8e4afc4a3afd604e4e1256d..eb092a1df8eeba0f1e9ae94f9e3cb311bbd54243 100644 (file)
@@ -1,7 +1,6 @@
 /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
 
-import 'mocha'
-import * as chai from 'chai'
+import { expect } from 'chai'
 import { UserNotificationType } from '@shared/models'
 import {
   cleanupTests,
@@ -12,8 +11,6 @@ import {
   waitJobs
 } from '@shared/server-commands'
 
-const expect = chai.expect
-
 async function checkNotifications (server: PeerTubeServer, token: string, expected: UserNotificationType[]) {
   const { data } = await server.notifications.list({ token, start: 0, count: 10, unread: true })
   expect(data).to.have.lengthOf(expected.length)
@@ -23,7 +20,7 @@ async function checkNotifications (server: PeerTubeServer, token: string, expect
   }
 }
 
-describe('Test blocklist', function () {
+describe('Test blocklist notifications', function () {
   let servers: PeerTubeServer[]
   let videoUUID: string