]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/api/notifications/notifications-api.ts
Merge remote-tracking branch 'weblate/develop' into release/5.0.0
[github/Chocobozzz/PeerTube.git] / server / tests / api / notifications / notifications-api.ts
index 78864c8a04f8f9782e67c80798e14fcc63825ba3..f194656c9f8b1eb684812e5f7b53489dd486b340 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 {
   CheckerBaseParams,
   checkNewVideoFromSubscription,
@@ -12,8 +11,6 @@ import {
 import { UserNotification, UserNotificationSettingValue } from '@shared/models'
 import { cleanupTests, PeerTubeServer, waitJobs } from '@shared/server-commands'
 
-const expect = chai.expect
-
 describe('Test notifications API', function () {
   let server: PeerTubeServer
   let userNotifications: UserNotification[] = []
@@ -99,7 +96,7 @@ describe('Test notifications API', function () {
 
     before(() => {
       baseParams = {
-        server: server,
+        server,
         emails,
         socketNotifications: userNotifications,
         token: userToken