X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fclient.ts;h=670bc67016927c9541c157822ea85b362c5e0bd7;hb=1fdf8edb77008133e80e5ab8e846b7f8fdfecf12;hp=06b4a9c5a1c404599e3398b333e42d4125cf21a9;hpb=9639bd175726b73f8fe664b5ced12a72407b1f0b;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/client.ts b/server/tests/client.ts index 06b4a9c5a..670bc6701 100644 --- a/server/tests/client.ts +++ b/server/tests/client.ts @@ -1,21 +1,20 @@ -/* tslint:disable:no-unused-expression */ +/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ import 'mocha' import * as chai from 'chai' import * as request from 'supertest' import { - flushTests, + cleanupTests, + flushAndRunServer, getCustomConfig, getVideosList, - killallServers, makeHTMLRequest, - runServer, ServerInfo, serverLogin, updateCustomConfig, updateCustomSubConfig, uploadVideo -} from '../../shared/utils' +} from '../../shared/extra-utils' const expect = chai.expect @@ -31,9 +30,7 @@ describe('Test a client controllers', function () { before(async function () { this.timeout(120000) - await flushTests() - - server = await runServer(1) + server = await flushAndRunServer(1) server.accessToken = await serverLogin(server) const videoAttributes = { @@ -115,8 +112,7 @@ describe('Test a client controllers', function () { it('Should have valid index html tags (title, description...)', async function () { const res = await makeHTMLRequest(server.url, '/videos/trending') - const description = 'PeerTube, a federated (ActivityPub) video streaming platform using P2P (BitTorrent) directly in the web browser ' + - 'with WebTorrent and Angular.' + const description = 'PeerTube, an ActivityPub-federated video streaming platform using P2P directly in your web browser.' checkIndexTags(res.text, 'PeerTube', description, '') }) @@ -148,6 +144,6 @@ describe('Test a client controllers', function () { }) after(async function () { - killallServers([ server ]) + await cleanupTests([ server ]) }) })