X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fcheck-params%2Fvideos-history.ts;h=941f6265414c2ba6383bf28f01ceae74d93fbb2c;hb=3b0bd70aa05ab82fa30fe67ed4899d44652c703a;hp=32f65f5103bd4ddeda781ad3dcfbc84824ec5dfe;hpb=210feb6cc484a6c5c63c98f770de34e223f944cb;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/check-params/videos-history.ts b/server/tests/api/check-params/videos-history.ts index 32f65f510..941f62654 100644 --- a/server/tests/api/check-params/videos-history.ts +++ b/server/tests/api/check-params/videos-history.ts @@ -1,27 +1,23 @@ -/* tslint:disable:no-unused-expression */ +/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ -import * as chai from 'chai' import 'mocha' import { checkBadCountPagination, checkBadStartPagination, - flushTests, - killallServers, + cleanupTests, + flushAndRunServer, makeGetRequest, makePostBodyRequest, makePutBodyRequest, - flushAndRunServer, ServerInfo, setAccessTokensToServers, uploadVideo } from '../../../../shared/extra-utils' -const expect = chai.expect - describe('Test videos history API validator', function () { + const myHistoryPath = '/api/v1/users/me/history/videos' + const myHistoryRemove = myHistoryPath + '/remove' let watchingPath: string - let myHistoryPath = '/api/v1/users/me/history/videos' - let myHistoryRemove = myHistoryPath + '/remove' let server: ServerInfo // --------------------------------------------------------------- @@ -126,7 +122,7 @@ describe('Test videos history API validator', function () { }) }) - after(function () { - killallServers([ server ]) + after(async function () { + await cleanupTests([ server ]) }) })