diff options
author | Chocobozzz <me@florianbigard.com> | 2022-08-17 15:44:32 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-08-17 15:47:54 +0200 |
commit | 863477173efa82a4412d2e522aa46462249f9199 (patch) | |
tree | 40f0ae28691780d79acef5ba4dbd2ef0694ce8ff /server/tests/api/videos | |
parent | e0faa8ad6e18ce6248ef1ec93a59dab5b05be468 (diff) | |
download | PeerTube-863477173efa82a4412d2e522aa46462249f9199.tar.gz PeerTube-863477173efa82a4412d2e522aa46462249f9199.tar.zst PeerTube-863477173efa82a4412d2e522aa46462249f9199.zip |
Cleanup tests imports
Diffstat (limited to 'server/tests/api/videos')
-rw-r--r-- | server/tests/api/videos/multiple-servers.ts | 4 | ||||
-rw-r--r-- | server/tests/api/videos/resumable-upload.ts | 4 | ||||
-rw-r--r-- | server/tests/api/videos/single-server.ts | 4 | ||||
-rw-r--r-- | server/tests/api/videos/video-captions.ts | 4 | ||||
-rw-r--r-- | server/tests/api/videos/video-change-ownership.ts | 4 | ||||
-rw-r--r-- | server/tests/api/videos/video-channels.ts | 4 | ||||
-rw-r--r-- | server/tests/api/videos/video-comments.ts | 4 | ||||
-rw-r--r-- | server/tests/api/videos/video-description.ts | 4 | ||||
-rw-r--r-- | server/tests/api/videos/video-nsfw.ts | 4 | ||||
-rw-r--r-- | server/tests/api/videos/video-playlist-thumbnails.ts | 4 | ||||
-rw-r--r-- | server/tests/api/videos/video-playlists.ts | 4 | ||||
-rw-r--r-- | server/tests/api/videos/video-privacy.ts | 4 | ||||
-rw-r--r-- | server/tests/api/videos/video-schedule-update.ts | 4 | ||||
-rw-r--r-- | server/tests/api/videos/video-source.ts | 4 | ||||
-rw-r--r-- | server/tests/api/videos/videos-history.ts | 4 | ||||
-rw-r--r-- | server/tests/api/videos/videos-overview.ts | 4 |
16 files changed, 16 insertions, 48 deletions
diff --git a/server/tests/api/videos/multiple-servers.ts b/server/tests/api/videos/multiple-servers.ts index 766cc8236..23790ba65 100644 --- a/server/tests/api/videos/multiple-servers.ts +++ b/server/tests/api/videos/multiple-servers.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 request from 'supertest' | 4 | import request from 'supertest' |
5 | import { | 5 | import { |
6 | checkTmpIsEmpty, | 6 | checkTmpIsEmpty, |
@@ -25,8 +25,6 @@ import { | |||
25 | webtorrentAdd | 25 | webtorrentAdd |
26 | } from '@shared/server-commands' | 26 | } from '@shared/server-commands' |
27 | 27 | ||
28 | const expect = chai.expect | ||
29 | |||
30 | describe('Test multiple servers', function () { | 28 | describe('Test multiple servers', function () { |
31 | let servers: PeerTubeServer[] = [] | 29 | let servers: PeerTubeServer[] = [] |
32 | const toRemove = [] | 30 | const toRemove = [] |
diff --git a/server/tests/api/videos/resumable-upload.ts b/server/tests/api/videos/resumable-upload.ts index 9936d5467..0625828a1 100644 --- a/server/tests/api/videos/resumable-upload.ts +++ b/server/tests/api/videos/resumable-upload.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 { pathExists, readdir, stat } from 'fs-extra' | 4 | import { pathExists, readdir, stat } from 'fs-extra' |
5 | import { join } from 'path' | 5 | import { join } from 'path' |
6 | import { buildAbsoluteFixturePath } from '@shared/core-utils' | 6 | import { buildAbsoluteFixturePath } from '@shared/core-utils' |
@@ -8,8 +8,6 @@ import { sha1 } from '@shared/extra-utils' | |||
8 | import { HttpStatusCode, VideoPrivacy } from '@shared/models' | 8 | import { HttpStatusCode, VideoPrivacy } from '@shared/models' |
9 | import { cleanupTests, createSingleServer, PeerTubeServer, setAccessTokensToServers, setDefaultVideoChannel } from '@shared/server-commands' | 9 | import { cleanupTests, createSingleServer, PeerTubeServer, setAccessTokensToServers, setDefaultVideoChannel } from '@shared/server-commands' |
10 | 10 | ||
11 | const expect = chai.expect | ||
12 | |||
13 | // Most classic resumable upload tests are done in other test suites | 11 | // Most classic resumable upload tests are done in other test suites |
14 | 12 | ||
15 | describe('Test resumable upload', function () { | 13 | describe('Test resumable upload', function () { |
diff --git a/server/tests/api/videos/single-server.ts b/server/tests/api/videos/single-server.ts index 574fb523e..da8bde07b 100644 --- a/server/tests/api/videos/single-server.ts +++ b/server/tests/api/videos/single-server.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 { checkVideoFilesWereRemoved, completeVideoCheck, testImage } from '@server/tests/shared' | 4 | import { checkVideoFilesWereRemoved, completeVideoCheck, testImage } from '@server/tests/shared' |
5 | import { wait } from '@shared/core-utils' | 5 | import { wait } from '@shared/core-utils' |
6 | import { Video, VideoPrivacy } from '@shared/models' | 6 | import { Video, VideoPrivacy } from '@shared/models' |
@@ -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 a single server', function () { | 17 | describe('Test a single server', function () { |
20 | 18 | ||
21 | function runSuite (mode: 'legacy' | 'resumable') { | 19 | function runSuite (mode: 'legacy' | 'resumable') { |
diff --git a/server/tests/api/videos/video-captions.ts b/server/tests/api/videos/video-captions.ts index b68e5e6e8..0630c9d3a 100644 --- a/server/tests/api/videos/video-captions.ts +++ b/server/tests/api/videos/video-captions.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 { checkVideoFilesWereRemoved, testCaptionFile } from '@server/tests/shared' | 4 | import { checkVideoFilesWereRemoved, testCaptionFile } from '@server/tests/shared' |
5 | import { wait } from '@shared/core-utils' | 5 | import { wait } from '@shared/core-utils' |
6 | import { | 6 | import { |
@@ -12,8 +12,6 @@ import { | |||
12 | waitJobs | 12 | waitJobs |
13 | } from '@shared/server-commands' | 13 | } from '@shared/server-commands' |
14 | 14 | ||
15 | const expect = chai.expect | ||
16 | |||
17 | describe('Test video captions', function () { | 15 | describe('Test video captions', function () { |
18 | const uuidRegex = '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}' | 16 | const uuidRegex = '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}' |
19 | 17 | ||
diff --git a/server/tests/api/videos/video-change-ownership.ts b/server/tests/api/videos/video-change-ownership.ts index 85bc191b6..e9ef67493 100644 --- a/server/tests/api/videos/video-change-ownership.ts +++ b/server/tests/api/videos/video-change-ownership.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 | ChangeOwnershipCommand, | 5 | ChangeOwnershipCommand, |
6 | cleanupTests, | 6 | cleanupTests, |
@@ -14,8 +14,6 @@ import { | |||
14 | } from '@shared/server-commands' | 14 | } from '@shared/server-commands' |
15 | import { HttpStatusCode, VideoPrivacy } from '@shared/models' | 15 | import { HttpStatusCode, VideoPrivacy } from '@shared/models' |
16 | 16 | ||
17 | const expect = chai.expect | ||
18 | |||
19 | describe('Test video change ownership - nominal', function () { | 17 | describe('Test video change ownership - nominal', function () { |
20 | let servers: PeerTubeServer[] = [] | 18 | let servers: PeerTubeServer[] = [] |
21 | 19 | ||
diff --git a/server/tests/api/videos/video-channels.ts b/server/tests/api/videos/video-channels.ts index b7645ea59..86a8a038c 100644 --- a/server/tests/api/videos/video-channels.ts +++ b/server/tests/api/videos/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 { basename } from 'path' | 4 | import { basename } from 'path' |
5 | import { ACTOR_IMAGES_SIZE } from '@server/initializers/constants' | 5 | import { ACTOR_IMAGES_SIZE } from '@server/initializers/constants' |
6 | import { testFileExistsOrNot, testImage } from '@server/tests/shared' | 6 | import { testFileExistsOrNot, testImage } from '@server/tests/shared' |
@@ -17,8 +17,6 @@ import { | |||
17 | waitJobs | 17 | waitJobs |
18 | } from '@shared/server-commands' | 18 | } from '@shared/server-commands' |
19 | 19 | ||
20 | const expect = chai.expect | ||
21 | |||
22 | async function findChannel (server: PeerTubeServer, channelId: number) { | 20 | async function findChannel (server: PeerTubeServer, channelId: number) { |
23 | const body = await server.channels.list({ sort: '-name' }) | 21 | const body = await server.channels.list({ sort: '-name' }) |
24 | 22 | ||
diff --git a/server/tests/api/videos/video-comments.ts b/server/tests/api/videos/video-comments.ts index 6d74a865f..348b408e8 100644 --- a/server/tests/api/videos/video-comments.ts +++ b/server/tests/api/videos/video-comments.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 { dateIsValid, testImage } from '@server/tests/shared' | 4 | import { dateIsValid, testImage } from '@server/tests/shared' |
5 | import { | 5 | import { |
6 | cleanupTests, | 6 | cleanupTests, |
@@ -12,8 +12,6 @@ import { | |||
12 | setDefaultChannelAvatar | 12 | setDefaultChannelAvatar |
13 | } from '@shared/server-commands' | 13 | } from '@shared/server-commands' |
14 | 14 | ||
15 | const expect = chai.expect | ||
16 | |||
17 | describe('Test video comments', function () { | 15 | describe('Test video comments', function () { |
18 | let server: PeerTubeServer | 16 | let server: PeerTubeServer |
19 | let videoId: number | 17 | let videoId: number |
diff --git a/server/tests/api/videos/video-description.ts b/server/tests/api/videos/video-description.ts index 347325741..a74b78a5f 100644 --- a/server/tests/api/videos/video-description.ts +++ b/server/tests/api/videos/video-description.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 | createMultipleServers, | 6 | createMultipleServers, |
@@ -10,8 +10,6 @@ import { | |||
10 | waitJobs | 10 | waitJobs |
11 | } from '@shared/server-commands' | 11 | } from '@shared/server-commands' |
12 | 12 | ||
13 | const expect = chai.expect | ||
14 | |||
15 | describe('Test video description', function () { | 13 | describe('Test video description', function () { |
16 | let servers: PeerTubeServer[] = [] | 14 | let servers: PeerTubeServer[] = [] |
17 | let videoUUID = '' | 15 | let videoUUID = '' |
diff --git a/server/tests/api/videos/video-nsfw.ts b/server/tests/api/videos/video-nsfw.ts index cfa130043..65e9c8730 100644 --- a/server/tests/api/videos/video-nsfw.ts +++ b/server/tests/api/videos/video-nsfw.ts | |||
@@ -1,11 +1,9 @@ | |||
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, setAccessTokensToServers } from '@shared/server-commands' | 4 | import { cleanupTests, createSingleServer, PeerTubeServer, setAccessTokensToServers } from '@shared/server-commands' |
5 | import { BooleanBothQuery, CustomConfig, ResultList, Video, VideosOverview } from '@shared/models' | 5 | import { BooleanBothQuery, CustomConfig, ResultList, Video, VideosOverview } from '@shared/models' |
6 | 6 | ||
7 | const expect = chai.expect | ||
8 | |||
9 | function createOverviewRes (overview: VideosOverview) { | 7 | function createOverviewRes (overview: VideosOverview) { |
10 | const videos = overview.categories[0].videos | 8 | const videos = overview.categories[0].videos |
11 | return { data: videos, total: videos.length } | 9 | return { data: videos, total: videos.length } |
diff --git a/server/tests/api/videos/video-playlist-thumbnails.ts b/server/tests/api/videos/video-playlist-thumbnails.ts index 019f34b6b..356939b93 100644 --- a/server/tests/api/videos/video-playlist-thumbnails.ts +++ b/server/tests/api/videos/video-playlist-thumbnails.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 { testImage } from '@server/tests/shared' | 4 | import { testImage } from '@server/tests/shared' |
5 | import { VideoPlaylistPrivacy } from '@shared/models' | 5 | import { VideoPlaylistPrivacy } from '@shared/models' |
6 | import { | 6 | import { |
@@ -13,8 +13,6 @@ import { | |||
13 | waitJobs | 13 | waitJobs |
14 | } from '@shared/server-commands' | 14 | } from '@shared/server-commands' |
15 | 15 | ||
16 | const expect = chai.expect | ||
17 | |||
18 | describe('Playlist thumbnail', function () { | 16 | describe('Playlist thumbnail', function () { |
19 | let servers: PeerTubeServer[] = [] | 17 | let servers: PeerTubeServer[] = [] |
20 | 18 | ||
diff --git a/server/tests/api/videos/video-playlists.ts b/server/tests/api/videos/video-playlists.ts index dd5f6a3ca..47b8c7b1e 100644 --- a/server/tests/api/videos/video-playlists.ts +++ b/server/tests/api/videos/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 { checkPlaylistFilesWereRemoved, testImage } from '@server/tests/shared' | 4 | import { checkPlaylistFilesWereRemoved, testImage } from '@server/tests/shared' |
5 | import { wait } from '@shared/core-utils' | 5 | import { wait } from '@shared/core-utils' |
6 | import { | 6 | import { |
@@ -24,8 +24,6 @@ import { | |||
24 | waitJobs | 24 | waitJobs |
25 | } from '@shared/server-commands' | 25 | } from '@shared/server-commands' |
26 | 26 | ||
27 | const expect = chai.expect | ||
28 | |||
29 | async function checkPlaylistElementType ( | 27 | async function checkPlaylistElementType ( |
30 | servers: PeerTubeServer[], | 28 | servers: PeerTubeServer[], |
31 | playlistId: string, | 29 | playlistId: string, |
diff --git a/server/tests/api/videos/video-privacy.ts b/server/tests/api/videos/video-privacy.ts index 711622df9..b18c71c94 100644 --- a/server/tests/api/videos/video-privacy.ts +++ b/server/tests/api/videos/video-privacy.ts | |||
@@ -1,12 +1,10 @@ | |||
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 { HttpStatusCode, VideoCreateResult, VideoPrivacy } from '@shared/models' | 5 | import { HttpStatusCode, VideoCreateResult, VideoPrivacy } from '@shared/models' |
6 | import { cleanupTests, createSingleServer, doubleFollow, PeerTubeServer, setAccessTokensToServers, waitJobs } from '@shared/server-commands' | 6 | import { cleanupTests, createSingleServer, doubleFollow, PeerTubeServer, setAccessTokensToServers, waitJobs } from '@shared/server-commands' |
7 | 7 | ||
8 | const expect = chai.expect | ||
9 | |||
10 | describe('Test video privacy', function () { | 8 | describe('Test video privacy', function () { |
11 | const servers: PeerTubeServer[] = [] | 9 | const servers: PeerTubeServer[] = [] |
12 | let anotherUserToken: string | 10 | let anotherUserToken: string |
diff --git a/server/tests/api/videos/video-schedule-update.ts b/server/tests/api/videos/video-schedule-update.ts index 7865b3439..73f1519d9 100644 --- a/server/tests/api/videos/video-schedule-update.ts +++ b/server/tests/api/videos/video-schedule-update.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 { |
@@ -12,8 +12,6 @@ import { | |||
12 | waitJobs | 12 | waitJobs |
13 | } from '@shared/server-commands' | 13 | } from '@shared/server-commands' |
14 | 14 | ||
15 | const expect = chai.expect | ||
16 | |||
17 | function in10Seconds () { | 15 | function in10Seconds () { |
18 | const now = new Date() | 16 | const now = new Date() |
19 | now.setSeconds(now.getSeconds() + 10) | 17 | now.setSeconds(now.getSeconds() + 10) |
diff --git a/server/tests/api/videos/video-source.ts b/server/tests/api/videos/video-source.ts index 4c1641ed0..5ecf8316f 100644 --- a/server/tests/api/videos/video-source.ts +++ b/server/tests/api/videos/video-source.ts | |||
@@ -1,8 +1,6 @@ | |||
1 | import * as chai from 'chai' | 1 | import { expect } from 'chai' |
2 | import { cleanupTests, createSingleServer, PeerTubeServer, setAccessTokensToServers } from '@shared/server-commands' | 2 | import { cleanupTests, createSingleServer, PeerTubeServer, setAccessTokensToServers } from '@shared/server-commands' |
3 | 3 | ||
4 | const expect = chai.expect | ||
5 | |||
6 | describe('Test video source', () => { | 4 | describe('Test video source', () => { |
7 | let server: PeerTubeServer = null | 5 | let server: PeerTubeServer = null |
8 | const fixture = 'video_short.webm' | 6 | const fixture = 'video_short.webm' |
diff --git a/server/tests/api/videos/videos-history.ts b/server/tests/api/videos/videos-history.ts index 500744e40..6df26ab7d 100644 --- a/server/tests/api/videos/videos-history.ts +++ b/server/tests/api/videos/videos-history.ts | |||
@@ -1,12 +1,10 @@ | |||
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 { Video } from '@shared/models' | 5 | import { Video } from '@shared/models' |
6 | import { cleanupTests, createSingleServer, killallServers, PeerTubeServer, setAccessTokensToServers } from '@shared/server-commands' | 6 | import { cleanupTests, createSingleServer, killallServers, PeerTubeServer, setAccessTokensToServers } from '@shared/server-commands' |
7 | 7 | ||
8 | const expect = chai.expect | ||
9 | |||
10 | describe('Test videos history', function () { | 8 | describe('Test videos history', function () { |
11 | let server: PeerTubeServer = null | 9 | let server: PeerTubeServer = null |
12 | let video1Id: number | 10 | let video1Id: number |
diff --git a/server/tests/api/videos/videos-overview.ts b/server/tests/api/videos/videos-overview.ts index 5159e8248..c012d47c3 100644 --- a/server/tests/api/videos/videos-overview.ts +++ b/server/tests/api/videos/videos-overview.ts | |||
@@ -1,12 +1,10 @@ | |||
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 { VideosOverview } from '@shared/models' | 5 | import { VideosOverview } from '@shared/models' |
6 | import { cleanupTests, createSingleServer, PeerTubeServer, setAccessTokensToServers } from '@shared/server-commands' | 6 | import { cleanupTests, createSingleServer, PeerTubeServer, setAccessTokensToServers } from '@shared/server-commands' |
7 | 7 | ||
8 | const expect = chai.expect | ||
9 | |||
10 | describe('Test a videos overview', function () { | 8 | describe('Test a videos overview', function () { |
11 | let server: PeerTubeServer = null | 9 | let server: PeerTubeServer = null |
12 | 10 | ||