diff options
Diffstat (limited to 'server/tests/api/search')
7 files changed, 7 insertions, 21 deletions
diff --git a/server/tests/api/search/search-activitypub-video-channels.ts b/server/tests/api/search/search-activitypub-video-channels.ts index 118be11af..06a206d21 100644 --- a/server/tests/api/search/search-activitypub-video-channels.ts +++ b/server/tests/api/search/search-activitypub-video-channels.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 { wait } from '@shared/core-utils' | 4 | import { wait } from '@shared/core-utils' |
5 | import { VideoChannel } from '@shared/models' | 5 | import { VideoChannel } from '@shared/models' |
6 | import { | 6 | import { |
@@ -14,8 +14,6 @@ import { | |||
14 | waitJobs | 14 | waitJobs |
15 | } from '@shared/server-commands' | 15 | } from '@shared/server-commands' |
16 | 16 | ||
17 | const expect = chai.expect | ||
18 | |||
19 | describe('Test ActivityPub video channels search', function () { | 17 | describe('Test ActivityPub video channels search', function () { |
20 | let servers: PeerTubeServer[] | 18 | let servers: PeerTubeServer[] |
21 | let userServer2Token: string | 19 | let userServer2Token: string |
diff --git a/server/tests/api/search/search-activitypub-video-playlists.ts b/server/tests/api/search/search-activitypub-video-playlists.ts index 1ba9ce2c4..25b162074 100644 --- a/server/tests/api/search/search-activitypub-video-playlists.ts +++ b/server/tests/api/search/search-activitypub-video-playlists.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 { wait } from '@shared/core-utils' | 4 | import { wait } from '@shared/core-utils' |
5 | import { VideoPlaylistPrivacy } from '@shared/models' | 5 | import { VideoPlaylistPrivacy } from '@shared/models' |
6 | import { | 6 | import { |
@@ -14,8 +14,6 @@ import { | |||
14 | waitJobs | 14 | waitJobs |
15 | } from '@shared/server-commands' | 15 | } from '@shared/server-commands' |
16 | 16 | ||
17 | const expect = chai.expect | ||
18 | |||
19 | describe('Test ActivityPub playlists search', function () { | 17 | describe('Test ActivityPub playlists search', function () { |
20 | let servers: PeerTubeServer[] | 18 | let servers: PeerTubeServer[] |
21 | let playlistServer1UUID: string | 19 | let playlistServer1UUID: string |
diff --git a/server/tests/api/search/search-activitypub-videos.ts b/server/tests/api/search/search-activitypub-videos.ts index b17b92dca..4c7118422 100644 --- a/server/tests/api/search/search-activitypub-videos.ts +++ b/server/tests/api/search/search-activitypub-videos.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 { wait } from '@shared/core-utils' | 4 | import { wait } from '@shared/core-utils' |
5 | import { VideoPrivacy } from '@shared/models' | 5 | import { VideoPrivacy } from '@shared/models' |
6 | import { | 6 | import { |
@@ -14,8 +14,6 @@ import { | |||
14 | waitJobs | 14 | waitJobs |
15 | } from '@shared/server-commands' | 15 | } from '@shared/server-commands' |
16 | 16 | ||
17 | const expect = chai.expect | ||
18 | |||
19 | describe('Test ActivityPub videos search', function () { | 17 | describe('Test ActivityPub videos search', function () { |
20 | let servers: PeerTubeServer[] | 18 | let servers: PeerTubeServer[] |
21 | let videoServer1UUID: string | 19 | let videoServer1UUID: string |
diff --git a/server/tests/api/search/search-channels.ts b/server/tests/api/search/search-channels.ts index cab8e6292..c6b098a93 100644 --- a/server/tests/api/search/search-channels.ts +++ b/server/tests/api/search/search-channels.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 { VideoChannel } from '@shared/models' | 4 | import { VideoChannel } from '@shared/models' |
5 | import { | 5 | import { |
6 | cleanupTests, | 6 | cleanupTests, |
@@ -13,8 +13,6 @@ import { | |||
13 | setDefaultChannelAvatar | 13 | setDefaultChannelAvatar |
14 | } from '@shared/server-commands' | 14 | } from '@shared/server-commands' |
15 | 15 | ||
16 | const expect = chai.expect | ||
17 | |||
18 | describe('Test channels search', function () { | 16 | describe('Test channels search', function () { |
19 | let server: PeerTubeServer | 17 | let server: PeerTubeServer |
20 | let remoteServer: PeerTubeServer | 18 | let remoteServer: PeerTubeServer |
diff --git a/server/tests/api/search/search-index.ts b/server/tests/api/search/search-index.ts index ece6c0475..c61ac441d 100644 --- a/server/tests/api/search/search-index.ts +++ b/server/tests/api/search/search-index.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 | BooleanBothQuery, | 5 | BooleanBothQuery, |
6 | VideoChannelsSearchQuery, | 6 | VideoChannelsSearchQuery, |
@@ -11,8 +11,6 @@ import { | |||
11 | } from '@shared/models' | 11 | } from '@shared/models' |
12 | import { cleanupTests, createSingleServer, PeerTubeServer, SearchCommand, setAccessTokensToServers } from '@shared/server-commands' | 12 | import { cleanupTests, createSingleServer, PeerTubeServer, SearchCommand, setAccessTokensToServers } from '@shared/server-commands' |
13 | 13 | ||
14 | const expect = chai.expect | ||
15 | |||
16 | describe('Test index search', function () { | 14 | describe('Test index search', function () { |
17 | const localVideoName = 'local video' + new Date().toISOString() | 15 | const localVideoName = 'local video' + new Date().toISOString() |
18 | 16 | ||
diff --git a/server/tests/api/search/search-playlists.ts b/server/tests/api/search/search-playlists.ts index 8d48de641..a357674c2 100644 --- a/server/tests/api/search/search-playlists.ts +++ b/server/tests/api/search/search-playlists.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 { VideoPlaylistPrivacy } from '@shared/models' | 4 | import { VideoPlaylistPrivacy } from '@shared/models' |
5 | import { | 5 | import { |
6 | cleanupTests, | 6 | cleanupTests, |
@@ -14,8 +14,6 @@ import { | |||
14 | setDefaultVideoChannel | 14 | setDefaultVideoChannel |
15 | } from '@shared/server-commands' | 15 | } from '@shared/server-commands' |
16 | 16 | ||
17 | const expect = chai.expect | ||
18 | |||
19 | describe('Test playlists search', function () { | 17 | describe('Test playlists search', function () { |
20 | let server: PeerTubeServer | 18 | let server: PeerTubeServer |
21 | let remoteServer: PeerTubeServer | 19 | let remoteServer: PeerTubeServer |
diff --git a/server/tests/api/search/search-videos.ts b/server/tests/api/search/search-videos.ts index 5f2da55e2..5e85e3aa7 100644 --- a/server/tests/api/search/search-videos.ts +++ b/server/tests/api/search/search-videos.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 { wait } from '@shared/core-utils' | 4 | import { wait } from '@shared/core-utils' |
5 | import { VideoPrivacy } from '@shared/models' | 5 | import { VideoPrivacy } from '@shared/models' |
6 | import { | 6 | import { |
@@ -16,8 +16,6 @@ import { | |||
16 | stopFfmpeg | 16 | stopFfmpeg |
17 | } from '@shared/server-commands' | 17 | } from '@shared/server-commands' |
18 | 18 | ||
19 | const expect = chai.expect | ||
20 | |||
21 | describe('Test videos search', function () { | 19 | describe('Test videos search', function () { |
22 | let server: PeerTubeServer | 20 | let server: PeerTubeServer |
23 | let remoteServer: PeerTubeServer | 21 | let remoteServer: PeerTubeServer |