diff options
Diffstat (limited to 'server/tests/plugins')
-rw-r--r-- | server/tests/plugins/filter-hooks.ts | 4 | ||||
-rw-r--r-- | server/tests/plugins/html-injection.ts | 4 | ||||
-rw-r--r-- | server/tests/plugins/translations.ts | 4 | ||||
-rw-r--r-- | server/tests/plugins/video-constants.ts | 4 |
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 | ||
3 | import * as chai from 'chai' | 3 | import { expect } from 'chai' |
4 | import { HttpStatusCode, VideoDetails, VideoImportState, VideoPlaylist, VideoPlaylistPrivacy, VideoPrivacy } from '@shared/models' | 4 | import { HttpStatusCode, VideoDetails, VideoImportState, VideoPlaylist, VideoPlaylistPrivacy, VideoPrivacy } from '@shared/models' |
5 | import { | 5 | import { |
6 | cleanupTests, | 6 | cleanupTests, |
@@ -15,8 +15,6 @@ import { | |||
15 | } from '@shared/server-commands' | 15 | } from '@shared/server-commands' |
16 | import { FIXTURE_URLS } from '../shared' | 16 | import { FIXTURE_URLS } from '../shared' |
17 | 17 | ||
18 | const expect = chai.expect | ||
19 | |||
20 | describe('Test plugin filter hooks', function () { | 18 | describe('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 | ||
3 | import * as chai from 'chai' | 3 | import { expect } from 'chai' |
4 | import { | 4 | import { |
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 | ||
13 | const expect = chai.expect | ||
14 | |||
15 | describe('Test plugins HTML injection', function () { | 13 | describe('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 | ||
3 | import * as chai from 'chai' | 3 | import { expect } from 'chai' |
4 | import { cleanupTests, createSingleServer, PeerTubeServer, PluginsCommand, setAccessTokensToServers } from '@shared/server-commands' | 4 | import { cleanupTests, createSingleServer, PeerTubeServer, PluginsCommand, setAccessTokensToServers } from '@shared/server-commands' |
5 | 5 | ||
6 | const expect = chai.expect | ||
7 | |||
8 | describe('Test plugin translations', function () { | 6 | describe('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 | ||
3 | import * as chai from 'chai' | 3 | import { expect } from 'chai' |
4 | import { | 4 | import { |
5 | cleanupTests, | 5 | cleanupTests, |
6 | createSingleServer, | 6 | createSingleServer, |
@@ -11,8 +11,6 @@ import { | |||
11 | } from '@shared/server-commands' | 11 | } from '@shared/server-commands' |
12 | import { HttpStatusCode, VideoPlaylistPrivacy } from '@shared/models' | 12 | import { HttpStatusCode, VideoPlaylistPrivacy } from '@shared/models' |
13 | 13 | ||
14 | const expect = chai.expect | ||
15 | |||
16 | describe('Test plugin altering video constants', function () { | 14 | describe('Test plugin altering video constants', function () { |
17 | let server: PeerTubeServer | 15 | let server: PeerTubeServer |
18 | 16 | ||