From 863477173efa82a4412d2e522aa46462249f9199 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 17 Aug 2022 15:44:32 +0200 Subject: Cleanup tests imports --- server/tests/plugins/filter-hooks.ts | 4 +--- server/tests/plugins/html-injection.ts | 4 +--- server/tests/plugins/translations.ts | 4 +--- server/tests/plugins/video-constants.ts | 4 +--- 4 files changed, 4 insertions(+), 12 deletions(-) (limited to 'server/tests/plugins') diff --git a/server/tests/plugins/filter-hooks.ts b/server/tests/plugins/filter-hooks.ts index e05de587d..026c7e856 100644 --- a/server/tests/plugins/filter-hooks.ts +++ b/server/tests/plugins/filter-hooks.ts @@ -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 { HttpStatusCode, VideoDetails, VideoImportState, VideoPlaylist, VideoPlaylistPrivacy, VideoPrivacy } from '@shared/models' import { cleanupTests, @@ -15,8 +15,6 @@ import { } from '@shared/server-commands' import { FIXTURE_URLS } from '../shared' -const expect = chai.expect - describe('Test plugin filter hooks', function () { let servers: PeerTubeServer[] let videoUUID: string diff --git a/server/tests/plugins/html-injection.ts b/server/tests/plugins/html-injection.ts index 35d710b30..fe16bf1e6 100644 --- a/server/tests/plugins/html-injection.ts +++ b/server/tests/plugins/html-injection.ts @@ -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 { cleanupTests, createSingleServer, @@ -10,8 +10,6 @@ import { setAccessTokensToServers } from '@shared/server-commands' -const expect = chai.expect - describe('Test plugins HTML injection', function () { let server: PeerTubeServer = null let command: PluginsCommand diff --git a/server/tests/plugins/translations.ts b/server/tests/plugins/translations.ts index a76edaf44..67e4683f8 100644 --- a/server/tests/plugins/translations.ts +++ b/server/tests/plugins/translations.ts @@ -1,10 +1,8 @@ /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ -import * as chai from 'chai' +import { expect } from 'chai' import { cleanupTests, createSingleServer, PeerTubeServer, PluginsCommand, setAccessTokensToServers } from '@shared/server-commands' -const expect = chai.expect - describe('Test plugin translations', function () { let server: PeerTubeServer let command: PluginsCommand diff --git a/server/tests/plugins/video-constants.ts b/server/tests/plugins/video-constants.ts index 27e97d9c0..c388f02d1 100644 --- a/server/tests/plugins/video-constants.ts +++ b/server/tests/plugins/video-constants.ts @@ -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 { cleanupTests, createSingleServer, @@ -11,8 +11,6 @@ import { } from '@shared/server-commands' import { HttpStatusCode, VideoPlaylistPrivacy } from '@shared/models' -const expect = chai.expect - describe('Test plugin altering video constants', function () { let server: PeerTubeServer -- cgit v1.2.3