]>
Commit | Line | Data |
---|---|---|
b83b8dd5 RK |
1 | import 'mocha' |
2 | import * as request from 'supertest' | |
7c3b7976 C |
3 | import { ServerInfo } from '../../../../shared/extra-utils' |
4 | import { cleanupTests, flushAndRunServer } from '../../../../shared/extra-utils/server/servers' | |
b83b8dd5 RK |
5 | |
6 | describe('Start and stop server without web client routes', function () { | |
7 | let server: ServerInfo | |
8 | ||
9 | before(async function () { | |
10 | this.timeout(30000) | |
11 | ||
210feb6c | 12 | server = await flushAndRunServer(1, {}, ['--no-client']) |
b83b8dd5 RK |
13 | }) |
14 | ||
15 | it('Should fail getting the client', function () { | |
16 | const req = request(server.url) | |
17 | .get('/') | |
18 | ||
19 | return req.expect(404) | |
20 | }) | |
21 | ||
7c3b7976 C |
22 | after(async function () { |
23 | await cleanupTests([ server ]) | |
b83b8dd5 RK |
24 | }) |
25 | }) |