aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/check-params/abuses.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-16 09:47:51 +0200
committerChocobozzz <me@florianbigard.com>2021-07-20 15:27:18 +0200
commit254d3579f5338f5fd775c17d15cdfc37078bcfb4 (patch)
treeeaeb13fda16c16e98cd6991d202b0ca6a4cbdb63 /server/tests/api/check-params/abuses.ts
parent89d241a79c262b9775c233b73cff080043ebb5e6 (diff)
downloadPeerTube-254d3579f5338f5fd775c17d15cdfc37078bcfb4.tar.gz
PeerTube-254d3579f5338f5fd775c17d15cdfc37078bcfb4.tar.zst
PeerTube-254d3579f5338f5fd775c17d15cdfc37078bcfb4.zip
Use an object to represent a server
Diffstat (limited to 'server/tests/api/check-params/abuses.ts')
-rw-r--r--server/tests/api/check-params/abuses.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/server/tests/api/check-params/abuses.ts b/server/tests/api/check-params/abuses.ts
index 7a6790ba8..62811f932 100644
--- a/server/tests/api/check-params/abuses.ts
+++ b/server/tests/api/check-params/abuses.ts
@@ -9,10 +9,10 @@ import {
9 checkBadStartPagination, 9 checkBadStartPagination,
10 cleanupTests, 10 cleanupTests,
11 doubleFollow, 11 doubleFollow,
12 flushAndRunServer, 12 createSingleServer,
13 makeGetRequest, 13 makeGetRequest,
14 makePostBodyRequest, 14 makePostBodyRequest,
15 ServerInfo, 15 PeerTubeServer,
16 setAccessTokensToServers, 16 setAccessTokensToServers,
17 waitJobs 17 waitJobs
18} from '@shared/extra-utils' 18} from '@shared/extra-utils'
@@ -21,7 +21,7 @@ import { AbuseCreate, AbuseState } from '@shared/models'
21describe('Test abuses API validators', function () { 21describe('Test abuses API validators', function () {
22 const basePath = '/api/v1/abuses/' 22 const basePath = '/api/v1/abuses/'
23 23
24 let server: ServerInfo 24 let server: PeerTubeServer
25 25
26 let userToken = '' 26 let userToken = ''
27 let userToken2 = '' 27 let userToken2 = ''
@@ -35,7 +35,7 @@ describe('Test abuses API validators', function () {
35 before(async function () { 35 before(async function () {
36 this.timeout(30000) 36 this.timeout(30000)
37 37
38 server = await flushAndRunServer(1) 38 server = await createSingleServer(1)
39 39
40 await setAccessTokensToServers([ server ]) 40 await setAccessTokensToServers([ server ])
41 41
@@ -404,12 +404,12 @@ describe('Test abuses API validators', function () {
404 404
405 describe('When trying to manage messages of a remote abuse', function () { 405 describe('When trying to manage messages of a remote abuse', function () {
406 let remoteAbuseId: number 406 let remoteAbuseId: number
407 let anotherServer: ServerInfo 407 let anotherServer: PeerTubeServer
408 408
409 before(async function () { 409 before(async function () {
410 this.timeout(50000) 410 this.timeout(50000)
411 411
412 anotherServer = await flushAndRunServer(2) 412 anotherServer = await createSingleServer(2)
413 await setAccessTokensToServers([ anotherServer ]) 413 await setAccessTokensToServers([ anotherServer ])
414 414
415 await doubleFollow(anotherServer, server) 415 await doubleFollow(anotherServer, server)