diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-16 09:47:51 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:18 +0200 |
commit | 254d3579f5338f5fd775c17d15cdfc37078bcfb4 (patch) | |
tree | eaeb13fda16c16e98cd6991d202b0ca6a4cbdb63 /server/tests/api/videos/video-nsfw.ts | |
parent | 89d241a79c262b9775c233b73cff080043ebb5e6 (diff) | |
download | PeerTube-254d3579f5338f5fd775c17d15cdfc37078bcfb4.tar.gz PeerTube-254d3579f5338f5fd775c17d15cdfc37078bcfb4.tar.zst PeerTube-254d3579f5338f5fd775c17d15cdfc37078bcfb4.zip |
Use an object to represent a server
Diffstat (limited to 'server/tests/api/videos/video-nsfw.ts')
-rw-r--r-- | server/tests/api/videos/video-nsfw.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/tests/api/videos/video-nsfw.ts b/server/tests/api/videos/video-nsfw.ts index 95395a582..b25dcda20 100644 --- a/server/tests/api/videos/video-nsfw.ts +++ b/server/tests/api/videos/video-nsfw.ts | |||
@@ -2,7 +2,7 @@ | |||
2 | 2 | ||
3 | import 'mocha' | 3 | import 'mocha' |
4 | import * as chai from 'chai' | 4 | import * as chai from 'chai' |
5 | import { cleanupTests, flushAndRunServer, ServerInfo, setAccessTokensToServers } from '@shared/extra-utils' | 5 | import { cleanupTests, createSingleServer, PeerTubeServer, setAccessTokensToServers } from '@shared/extra-utils' |
6 | import { BooleanBothQuery, CustomConfig, ResultList, Video, VideosOverview } from '@shared/models' | 6 | import { BooleanBothQuery, CustomConfig, ResultList, Video, VideosOverview } from '@shared/models' |
7 | 7 | ||
8 | const expect = chai.expect | 8 | const expect = chai.expect |
@@ -13,7 +13,7 @@ function createOverviewRes (overview: VideosOverview) { | |||
13 | } | 13 | } |
14 | 14 | ||
15 | describe('Test video NSFW policy', function () { | 15 | describe('Test video NSFW policy', function () { |
16 | let server: ServerInfo | 16 | let server: PeerTubeServer |
17 | let userAccessToken: string | 17 | let userAccessToken: string |
18 | let customConfig: CustomConfig | 18 | let customConfig: CustomConfig |
19 | 19 | ||
@@ -61,7 +61,7 @@ describe('Test video NSFW policy', function () { | |||
61 | 61 | ||
62 | before(async function () { | 62 | before(async function () { |
63 | this.timeout(50000) | 63 | this.timeout(50000) |
64 | server = await flushAndRunServer(1) | 64 | server = await createSingleServer(1) |
65 | 65 | ||
66 | // Get the access tokens | 66 | // Get the access tokens |
67 | await setAccessTokensToServers([ server ]) | 67 | await setAccessTokensToServers([ server ]) |