]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - server/tests/api/server/no-client.ts
Bumped to version v5.2.1
[github/Chocobozzz/PeerTube.git] / server / tests / api / server / no-client.ts
CommitLineData
41fb13c3 1import request from 'supertest'
c0e8b12e 2import { HttpStatusCode } from '@shared/models'
630d0a1b 3import { cleanupTests, createSingleServer, PeerTubeServer } from '@shared/server-commands'
b83b8dd5
RK
4
5describe('Start and stop server without web client routes', function () {
254d3579 6 let server: PeerTubeServer
b83b8dd5
RK
7
8 before(async function () {
9 this.timeout(30000)
10
2e980ed3 11 server = await createSingleServer(1, {}, { peertubeArgs: [ '--no-client' ] })
b83b8dd5
RK
12 })
13
14 it('Should fail getting the client', function () {
15 const req = request(server.url)
16 .get('/')
17
f2eb23cd 18 return req.expect(HttpStatusCode.NOT_FOUND_404)
b83b8dd5
RK
19 })
20
7c3b7976
C
21 after(async function () {
22 await cleanupTests([ server ])
b83b8dd5
RK
23 })
24})