X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fnotifications%2Fadmin-notifications.ts;h=b3bb4888ec9e071b07cdcbcd9af2599d082e1892;hb=638949c67a1fe6966909184880f0194ac6beb077;hp=c00d4e2575ae009b74415a54863b348d366870f8;hpb=9e8789497377cac5554a622da605f5b89587aa9c;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/notifications/admin-notifications.ts b/server/tests/api/notifications/admin-notifications.ts index c00d4e257..b3bb4888e 100644 --- a/server/tests/api/notifications/admin-notifications.ts +++ b/server/tests/api/notifications/admin-notifications.ts @@ -1,19 +1,17 @@ /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ -import 'mocha' import { expect } from 'chai' import { CheckerBaseParams, checkNewPeerTubeVersion, checkNewPluginVersion, - cleanupTests, MockJoinPeerTubeVersions, MockSmtpServer, - PeerTubeServer, - prepareNotificationsTest, - wait -} from '@shared/extra-utils' + prepareNotificationsTest +} from '@server/tests/shared' +import { wait } from '@shared/core-utils' import { PluginType, UserNotification, UserNotificationType } from '@shared/models' +import { cleanupTests, PeerTubeServer } from '@shared/server-commands' describe('Test admin notifications', function () { let server: PeerTubeServer @@ -52,7 +50,7 @@ describe('Test admin notifications', function () { adminNotifications = res.adminNotifications baseParams = { - server: server, + server, emails, socketNotifications: adminNotifications, token: server.accessToken