aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/check-params/bulk.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/bulk.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/bulk.ts')
-rw-r--r--server/tests/api/check-params/bulk.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/tests/api/check-params/bulk.ts b/server/tests/api/check-params/bulk.ts
index 69ff7dd96..a660c3d80 100644
--- a/server/tests/api/check-params/bulk.ts
+++ b/server/tests/api/check-params/bulk.ts
@@ -3,15 +3,15 @@
3import 'mocha' 3import 'mocha'
4import { 4import {
5 cleanupTests, 5 cleanupTests,
6 flushAndRunServer, 6 createSingleServer,
7 ServerInfo, 7 PeerTubeServer,
8 setAccessTokensToServers 8 setAccessTokensToServers
9} from '../../../../shared/extra-utils' 9} from '../../../../shared/extra-utils'
10import { makePostBodyRequest } from '../../../../shared/extra-utils/requests/requests' 10import { makePostBodyRequest } from '../../../../shared/extra-utils/requests/requests'
11import { HttpStatusCode } from '../../../../shared/core-utils/miscs/http-error-codes' 11import { HttpStatusCode } from '../../../../shared/core-utils/miscs/http-error-codes'
12 12
13describe('Test bulk API validators', function () { 13describe('Test bulk API validators', function () {
14 let server: ServerInfo 14 let server: PeerTubeServer
15 let userAccessToken: string 15 let userAccessToken: string
16 16
17 // --------------------------------------------------------------- 17 // ---------------------------------------------------------------
@@ -19,7 +19,7 @@ describe('Test bulk API validators', function () {
19 before(async function () { 19 before(async function () {
20 this.timeout(120000) 20 this.timeout(120000)
21 21
22 server = await flushAndRunServer(1) 22 server = await createSingleServer(1)
23 await setAccessTokensToServers([ server ]) 23 await setAccessTokensToServers([ server ])
24 24
25 const user = { username: 'user1', password: 'password' } 25 const user = { username: 'user1', password: 'password' }