aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/plugins')
-rw-r--r--server/tests/plugins/filter-hooks.ts4
-rw-r--r--server/tests/plugins/html-injection.ts4
-rw-r--r--server/tests/plugins/translations.ts4
-rw-r--r--server/tests/plugins/video-constants.ts4
4 files changed, 4 insertions, 12 deletions
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 @@
1/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ 1/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
2 2
3import * as chai from 'chai' 3import { expect } from 'chai'
4import { HttpStatusCode, VideoDetails, VideoImportState, VideoPlaylist, VideoPlaylistPrivacy, VideoPrivacy } from '@shared/models' 4import { HttpStatusCode, VideoDetails, VideoImportState, VideoPlaylist, VideoPlaylistPrivacy, VideoPrivacy } from '@shared/models'
5import { 5import {
6 cleanupTests, 6 cleanupTests,
@@ -15,8 +15,6 @@ import {
15} from '@shared/server-commands' 15} from '@shared/server-commands'
16import { FIXTURE_URLS } from '../shared' 16import { FIXTURE_URLS } from '../shared'
17 17
18const expect = chai.expect
19
20describe('Test plugin filter hooks', function () { 18describe('Test plugin filter hooks', function () {
21 let servers: PeerTubeServer[] 19 let servers: PeerTubeServer[]
22 let videoUUID: string 20 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 @@
1/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ 1/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
2 2
3import * as chai from 'chai' 3import { expect } from 'chai'
4import { 4import {
5 cleanupTests, 5 cleanupTests,
6 createSingleServer, 6 createSingleServer,
@@ -10,8 +10,6 @@ import {
10 setAccessTokensToServers 10 setAccessTokensToServers
11} from '@shared/server-commands' 11} from '@shared/server-commands'
12 12
13const expect = chai.expect
14
15describe('Test plugins HTML injection', function () { 13describe('Test plugins HTML injection', function () {
16 let server: PeerTubeServer = null 14 let server: PeerTubeServer = null
17 let command: PluginsCommand 15 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 @@
1/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ 1/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
2 2
3import * as chai from 'chai' 3import { expect } from 'chai'
4import { cleanupTests, createSingleServer, PeerTubeServer, PluginsCommand, setAccessTokensToServers } from '@shared/server-commands' 4import { cleanupTests, createSingleServer, PeerTubeServer, PluginsCommand, setAccessTokensToServers } from '@shared/server-commands'
5 5
6const expect = chai.expect
7
8describe('Test plugin translations', function () { 6describe('Test plugin translations', function () {
9 let server: PeerTubeServer 7 let server: PeerTubeServer
10 let command: PluginsCommand 8 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 @@
1/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ 1/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
2 2
3import * as chai from 'chai' 3import { expect } from 'chai'
4import { 4import {
5 cleanupTests, 5 cleanupTests,
6 createSingleServer, 6 createSingleServer,
@@ -11,8 +11,6 @@ import {
11} from '@shared/server-commands' 11} from '@shared/server-commands'
12import { HttpStatusCode, VideoPlaylistPrivacy } from '@shared/models' 12import { HttpStatusCode, VideoPlaylistPrivacy } from '@shared/models'
13 13
14const expect = chai.expect
15
16describe('Test plugin altering video constants', function () { 14describe('Test plugin altering video constants', function () {
17 let server: PeerTubeServer 15 let server: PeerTubeServer
18 16