X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fnotifications%2Fnotifications-api.ts;h=f194656c9f8b1eb684812e5f7b53489dd486b340;hb=aac7f4304dc7fa48869cb3f09c30383222add436;hp=78864c8a04f8f9782e67c80798e14fcc63825ba3;hpb=28dca0a2211524bbf3ad17666c607eb6325763b8;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/notifications/notifications-api.ts b/server/tests/api/notifications/notifications-api.ts index 78864c8a0..f194656c9 100644 --- a/server/tests/api/notifications/notifications-api.ts +++ b/server/tests/api/notifications/notifications-api.ts @@ -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