]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/api/moderation/blocklist-notification.ts
Fix tests
[github/Chocobozzz/PeerTube.git] / server / tests / api / moderation / blocklist-notification.ts
index d5d0e51786a560afa281b743a2be428d3e73d1cf..9c2863a58b5de17963bd61aa0421e973ab34e78c 100644 (file)
@@ -1,6 +1,6 @@
 /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
 
-import * as chai from 'chai'
+import { expect } from 'chai'
 import { UserNotificationType } from '@shared/models'
 import {
   cleanupTests,
@@ -11,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)
@@ -115,8 +113,6 @@ describe('Test blocklist notifications', function () {
     })
 
     it('Should block an account', async function () {
-      this.timeout(10000)
-
       await servers[0].blocklist.addToMyBlocklist({ token: userToken1, account: 'user3@' + servers[1].host })
       await waitJobs(servers)
     })
@@ -148,8 +144,6 @@ describe('Test blocklist notifications', function () {
     })
 
     it('Should block an account', async function () {
-      this.timeout(10000)
-
       await servers[0].blocklist.addToMyBlocklist({ token: userToken1, server: servers[1].host })
       await waitJobs(servers)
     })
@@ -188,8 +182,6 @@ describe('Test blocklist notifications', function () {
     })
 
     it('Should block an account', async function () {
-      this.timeout(10000)
-
       await servers[0].blocklist.addToServerBlocklist({ account: 'user3@' + servers[1].host })
       await waitJobs(servers)
     })
@@ -223,8 +215,6 @@ describe('Test blocklist notifications', function () {
     })
 
     it('Should block an account', async function () {
-      this.timeout(10000)
-
       await servers[0].blocklist.addToServerBlocklist({ server: servers[1].host })
       await waitJobs(servers)
     })