aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/search
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-08-17 15:40:57 +0200
committerChocobozzz <me@florianbigard.com>2022-08-17 15:40:57 +0200
commite0faa8ad6e18ce6248ef1ec93a59dab5b05be468 (patch)
treeca1cd02b34234a1eb6779d04f24bba73313c9739 /server/tests/api/search
parent690bb8f9f3413147a4f71d5ff0a3cd8170a94ce3 (diff)
downloadPeerTube-e0faa8ad6e18ce6248ef1ec93a59dab5b05be468.tar.gz
PeerTube-e0faa8ad6e18ce6248ef1ec93a59dab5b05be468.tar.zst
PeerTube-e0faa8ad6e18ce6248ef1ec93a59dab5b05be468.zip
We don't need to import mocha
Diffstat (limited to 'server/tests/api/search')
-rw-r--r--server/tests/api/search/search-activitypub-video-channels.ts1
-rw-r--r--server/tests/api/search/search-activitypub-video-playlists.ts1
-rw-r--r--server/tests/api/search/search-activitypub-videos.ts1
-rw-r--r--server/tests/api/search/search-channels.ts1
-rw-r--r--server/tests/api/search/search-index.ts3
-rw-r--r--server/tests/api/search/search-playlists.ts1
-rw-r--r--server/tests/api/search/search-videos.ts1
7 files changed, 1 insertions, 8 deletions
diff --git a/server/tests/api/search/search-activitypub-video-channels.ts b/server/tests/api/search/search-activitypub-video-channels.ts
index 5f5322d03..118be11af 100644
--- a/server/tests/api/search/search-activitypub-video-channels.ts
+++ b/server/tests/api/search/search-activitypub-video-channels.ts
@@ -1,6 +1,5 @@
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 'mocha'
4import * as chai from 'chai' 3import * as chai from 'chai'
5import { wait } from '@shared/core-utils' 4import { wait } from '@shared/core-utils'
6import { VideoChannel } from '@shared/models' 5import { VideoChannel } from '@shared/models'
diff --git a/server/tests/api/search/search-activitypub-video-playlists.ts b/server/tests/api/search/search-activitypub-video-playlists.ts
index b9a424292..1ba9ce2c4 100644
--- a/server/tests/api/search/search-activitypub-video-playlists.ts
+++ b/server/tests/api/search/search-activitypub-video-playlists.ts
@@ -1,6 +1,5 @@
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 'mocha'
4import * as chai from 'chai' 3import * as chai from 'chai'
5import { wait } from '@shared/core-utils' 4import { wait } from '@shared/core-utils'
6import { VideoPlaylistPrivacy } from '@shared/models' 5import { VideoPlaylistPrivacy } from '@shared/models'
diff --git a/server/tests/api/search/search-activitypub-videos.ts b/server/tests/api/search/search-activitypub-videos.ts
index 20249b1f1..b17b92dca 100644
--- a/server/tests/api/search/search-activitypub-videos.ts
+++ b/server/tests/api/search/search-activitypub-videos.ts
@@ -1,6 +1,5 @@
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 'mocha'
4import * as chai from 'chai' 3import * as chai from 'chai'
5import { wait } from '@shared/core-utils' 4import { wait } from '@shared/core-utils'
6import { VideoPrivacy } from '@shared/models' 5import { VideoPrivacy } from '@shared/models'
diff --git a/server/tests/api/search/search-channels.ts b/server/tests/api/search/search-channels.ts
index cd4c053d2..cab8e6292 100644
--- a/server/tests/api/search/search-channels.ts
+++ b/server/tests/api/search/search-channels.ts
@@ -1,6 +1,5 @@
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 'mocha'
4import * as chai from 'chai' 3import * as chai from 'chai'
5import { VideoChannel } from '@shared/models' 4import { VideoChannel } from '@shared/models'
6import { 5import {
diff --git a/server/tests/api/search/search-index.ts b/server/tests/api/search/search-index.ts
index 53b91e1cb..ece6c0475 100644
--- a/server/tests/api/search/search-index.ts
+++ b/server/tests/api/search/search-index.ts
@@ -1,8 +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 'mocha'
4import * as chai from 'chai' 3import * as chai from 'chai'
5import { cleanupTests, createSingleServer, PeerTubeServer, SearchCommand, setAccessTokensToServers } from '@shared/server-commands'
6import { 4import {
7 BooleanBothQuery, 5 BooleanBothQuery,
8 VideoChannelsSearchQuery, 6 VideoChannelsSearchQuery,
@@ -11,6 +9,7 @@ import {
11 VideoPlaylistType, 9 VideoPlaylistType,
12 VideosSearchQuery 10 VideosSearchQuery
13} from '@shared/models' 11} from '@shared/models'
12import { cleanupTests, createSingleServer, PeerTubeServer, SearchCommand, setAccessTokensToServers } from '@shared/server-commands'
14 13
15const expect = chai.expect 14const expect = chai.expect
16 15
diff --git a/server/tests/api/search/search-playlists.ts b/server/tests/api/search/search-playlists.ts
index d9f12d316..8d48de641 100644
--- a/server/tests/api/search/search-playlists.ts
+++ b/server/tests/api/search/search-playlists.ts
@@ -1,6 +1,5 @@
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 'mocha'
4import * as chai from 'chai' 3import * as chai from 'chai'
5import { VideoPlaylistPrivacy } from '@shared/models' 4import { VideoPlaylistPrivacy } from '@shared/models'
6import { 5import {
diff --git a/server/tests/api/search/search-videos.ts b/server/tests/api/search/search-videos.ts
index b1ebc855c..5f2da55e2 100644
--- a/server/tests/api/search/search-videos.ts
+++ b/server/tests/api/search/search-videos.ts
@@ -1,6 +1,5 @@
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 'mocha'
4import * as chai from 'chai' 3import * as chai from 'chai'
5import { wait } from '@shared/core-utils' 4import { wait } from '@shared/core-utils'
6import { VideoPrivacy } from '@shared/models' 5import { VideoPrivacy } from '@shared/models'