aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/search
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-08-17 15:44:32 +0200
committerChocobozzz <me@florianbigard.com>2022-08-17 15:47:54 +0200
commit863477173efa82a4412d2e522aa46462249f9199 (patch)
tree40f0ae28691780d79acef5ba4dbd2ef0694ce8ff /server/tests/api/search
parente0faa8ad6e18ce6248ef1ec93a59dab5b05be468 (diff)
downloadPeerTube-863477173efa82a4412d2e522aa46462249f9199.tar.gz
PeerTube-863477173efa82a4412d2e522aa46462249f9199.tar.zst
PeerTube-863477173efa82a4412d2e522aa46462249f9199.zip
Cleanup tests imports
Diffstat (limited to 'server/tests/api/search')
-rw-r--r--server/tests/api/search/search-activitypub-video-channels.ts4
-rw-r--r--server/tests/api/search/search-activitypub-video-playlists.ts4
-rw-r--r--server/tests/api/search/search-activitypub-videos.ts4
-rw-r--r--server/tests/api/search/search-channels.ts4
-rw-r--r--server/tests/api/search/search-index.ts4
-rw-r--r--server/tests/api/search/search-playlists.ts4
-rw-r--r--server/tests/api/search/search-videos.ts4
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
3import * as chai from 'chai' 3import { expect } from 'chai'
4import { wait } from '@shared/core-utils' 4import { wait } from '@shared/core-utils'
5import { VideoChannel } from '@shared/models' 5import { VideoChannel } from '@shared/models'
6import { 6import {
@@ -14,8 +14,6 @@ import {
14 waitJobs 14 waitJobs
15} from '@shared/server-commands' 15} from '@shared/server-commands'
16 16
17const expect = chai.expect
18
19describe('Test ActivityPub video channels search', function () { 17describe('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
3import * as chai from 'chai' 3import { expect } from 'chai'
4import { wait } from '@shared/core-utils' 4import { wait } from '@shared/core-utils'
5import { VideoPlaylistPrivacy } from '@shared/models' 5import { VideoPlaylistPrivacy } from '@shared/models'
6import { 6import {
@@ -14,8 +14,6 @@ import {
14 waitJobs 14 waitJobs
15} from '@shared/server-commands' 15} from '@shared/server-commands'
16 16
17const expect = chai.expect
18
19describe('Test ActivityPub playlists search', function () { 17describe('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
3import * as chai from 'chai' 3import { expect } from 'chai'
4import { wait } from '@shared/core-utils' 4import { wait } from '@shared/core-utils'
5import { VideoPrivacy } from '@shared/models' 5import { VideoPrivacy } from '@shared/models'
6import { 6import {
@@ -14,8 +14,6 @@ import {
14 waitJobs 14 waitJobs
15} from '@shared/server-commands' 15} from '@shared/server-commands'
16 16
17const expect = chai.expect
18
19describe('Test ActivityPub videos search', function () { 17describe('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
3import * as chai from 'chai' 3import { expect } from 'chai'
4import { VideoChannel } from '@shared/models' 4import { VideoChannel } from '@shared/models'
5import { 5import {
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
16const expect = chai.expect
17
18describe('Test channels search', function () { 16describe('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
3import * as chai from 'chai' 3import { expect } from 'chai'
4import { 4import {
5 BooleanBothQuery, 5 BooleanBothQuery,
6 VideoChannelsSearchQuery, 6 VideoChannelsSearchQuery,
@@ -11,8 +11,6 @@ import {
11} from '@shared/models' 11} from '@shared/models'
12import { cleanupTests, createSingleServer, PeerTubeServer, SearchCommand, setAccessTokensToServers } from '@shared/server-commands' 12import { cleanupTests, createSingleServer, PeerTubeServer, SearchCommand, setAccessTokensToServers } from '@shared/server-commands'
13 13
14const expect = chai.expect
15
16describe('Test index search', function () { 14describe('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
3import * as chai from 'chai' 3import { expect } from 'chai'
4import { VideoPlaylistPrivacy } from '@shared/models' 4import { VideoPlaylistPrivacy } from '@shared/models'
5import { 5import {
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
17const expect = chai.expect
18
19describe('Test playlists search', function () { 17describe('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
3import * as chai from 'chai' 3import { expect } from 'chai'
4import { wait } from '@shared/core-utils' 4import { wait } from '@shared/core-utils'
5import { VideoPrivacy } from '@shared/models' 5import { VideoPrivacy } from '@shared/models'
6import { 6import {
@@ -16,8 +16,6 @@ import {
16 stopFfmpeg 16 stopFfmpeg
17} from '@shared/server-commands' 17} from '@shared/server-commands'
18 18
19const expect = chai.expect
20
21describe('Test videos search', function () { 19describe('Test videos search', function () {
22 let server: PeerTubeServer 20 let server: PeerTubeServer
23 let remoteServer: PeerTubeServer 21 let remoteServer: PeerTubeServer