From e0faa8ad6e18ce6248ef1ec93a59dab5b05be468 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 17 Aug 2022 15:40:57 +0200 Subject: We don't need to import mocha --- server/tests/plugins/action-hooks.ts | 1 - server/tests/plugins/external-auth.ts | 1 - server/tests/plugins/filter-hooks.ts | 1 - server/tests/plugins/html-injection.ts | 1 - server/tests/plugins/id-and-pass-auth.ts | 1 - server/tests/plugins/plugin-helpers.ts | 1 - server/tests/plugins/plugin-router.ts | 1 - server/tests/plugins/plugin-storage.ts | 1 - server/tests/plugins/plugin-transcoding.ts | 1 - server/tests/plugins/plugin-unloading.ts | 1 - server/tests/plugins/translations.ts | 1 - server/tests/plugins/video-constants.ts | 1 - 12 files changed, 12 deletions(-) (limited to 'server/tests/plugins') diff --git a/server/tests/plugins/action-hooks.ts b/server/tests/plugins/action-hooks.ts index 405f81d7c..af65166d9 100644 --- a/server/tests/plugins/action-hooks.ts +++ b/server/tests/plugins/action-hooks.ts @@ -1,6 +1,5 @@ /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ -import 'mocha' import { ServerHookName, VideoPlaylistPrivacy, VideoPrivacy } from '@shared/models' import { cleanupTests, diff --git a/server/tests/plugins/external-auth.ts b/server/tests/plugins/external-auth.ts index 042681dbe..e08b83791 100644 --- a/server/tests/plugins/external-auth.ts +++ b/server/tests/plugins/external-auth.ts @@ -1,6 +1,5 @@ /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ -import 'mocha' import { expect } from 'chai' import { wait } from '@shared/core-utils' import { HttpStatusCode, UserRole } from '@shared/models' diff --git a/server/tests/plugins/filter-hooks.ts b/server/tests/plugins/filter-hooks.ts index 7e98d9be6..e05de587d 100644 --- a/server/tests/plugins/filter-hooks.ts +++ b/server/tests/plugins/filter-hooks.ts @@ -1,6 +1,5 @@ /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ -import 'mocha' import * as chai from 'chai' import { HttpStatusCode, VideoDetails, VideoImportState, VideoPlaylist, VideoPlaylistPrivacy, VideoPrivacy } from '@shared/models' import { diff --git a/server/tests/plugins/html-injection.ts b/server/tests/plugins/html-injection.ts index 0a3a9c25f..35d710b30 100644 --- a/server/tests/plugins/html-injection.ts +++ b/server/tests/plugins/html-injection.ts @@ -1,6 +1,5 @@ /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ -import 'mocha' import * as chai from 'chai' import { cleanupTests, diff --git a/server/tests/plugins/id-and-pass-auth.ts b/server/tests/plugins/id-and-pass-auth.ts index e72046ce2..85faac5a8 100644 --- a/server/tests/plugins/id-and-pass-auth.ts +++ b/server/tests/plugins/id-and-pass-auth.ts @@ -1,6 +1,5 @@ /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ -import 'mocha' import { expect } from 'chai' import { wait } from '@shared/core-utils' import { HttpStatusCode, UserRole } from '@shared/models' diff --git a/server/tests/plugins/plugin-helpers.ts b/server/tests/plugins/plugin-helpers.ts index 49807f8f5..955d7ddfd 100644 --- a/server/tests/plugins/plugin-helpers.ts +++ b/server/tests/plugins/plugin-helpers.ts @@ -1,6 +1,5 @@ /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ -import 'mocha' import { expect } from 'chai' import { pathExists } from 'fs-extra' import { HttpStatusCode, ThumbnailType } from '@shared/models' diff --git a/server/tests/plugins/plugin-router.ts b/server/tests/plugins/plugin-router.ts index 58629adc7..40b15eb79 100644 --- a/server/tests/plugins/plugin-router.ts +++ b/server/tests/plugins/plugin-router.ts @@ -1,6 +1,5 @@ /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ -import 'mocha' import { expect } from 'chai' import { cleanupTests, diff --git a/server/tests/plugins/plugin-storage.ts b/server/tests/plugins/plugin-storage.ts index 0bfc4fe28..112652a1f 100644 --- a/server/tests/plugins/plugin-storage.ts +++ b/server/tests/plugins/plugin-storage.ts @@ -1,6 +1,5 @@ /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ -import 'mocha' import { expect } from 'chai' import { pathExists, readdir, readFile } from 'fs-extra' import { join } from 'path' diff --git a/server/tests/plugins/plugin-transcoding.ts b/server/tests/plugins/plugin-transcoding.ts index 49569f1fa..ce1047388 100644 --- a/server/tests/plugins/plugin-transcoding.ts +++ b/server/tests/plugins/plugin-transcoding.ts @@ -1,6 +1,5 @@ /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ -import 'mocha' import { expect } from 'chai' import { getAudioStream, getVideoStreamFPS, getVideoStream } from '@server/helpers/ffmpeg' import { VideoPrivacy } from '@shared/models' diff --git a/server/tests/plugins/plugin-unloading.ts b/server/tests/plugins/plugin-unloading.ts index a94b83695..5aca1a0c0 100644 --- a/server/tests/plugins/plugin-unloading.ts +++ b/server/tests/plugins/plugin-unloading.ts @@ -1,6 +1,5 @@ /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ -import 'mocha' import { expect } from 'chai' import { cleanupTests, diff --git a/server/tests/plugins/translations.ts b/server/tests/plugins/translations.ts index 0b6e5793d..a76edaf44 100644 --- a/server/tests/plugins/translations.ts +++ b/server/tests/plugins/translations.ts @@ -1,6 +1,5 @@ /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ -import 'mocha' import * as chai from 'chai' import { cleanupTests, createSingleServer, PeerTubeServer, PluginsCommand, setAccessTokensToServers } from '@shared/server-commands' diff --git a/server/tests/plugins/video-constants.ts b/server/tests/plugins/video-constants.ts index 6dce6922f..27e97d9c0 100644 --- a/server/tests/plugins/video-constants.ts +++ b/server/tests/plugins/video-constants.ts @@ -1,6 +1,5 @@ /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ -import 'mocha' import * as chai from 'chai' import { cleanupTests, -- cgit v1.2.3