X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fplugins%2Fhtml-injection.ts;h=fe16bf1e6899d7a5ebde7a6a46810f7b59015336;hb=0c302acb3c358b4d4d8dee45aed1de1108ea37ea;hp=80d67ae0e47ad1384f3457d433a109df705f4513;hpb=ae2abfd3aed3e75d39a316b49b914d187faa7475;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/plugins/html-injection.ts b/server/tests/plugins/html-injection.ts index 80d67ae0e..fe16bf1e6 100644 --- a/server/tests/plugins/html-injection.ts +++ b/server/tests/plugins/html-injection.ts @@ -1,29 +1,26 @@ /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ -import 'mocha' -import * as chai from 'chai' +import { expect } from 'chai' import { cleanupTests, - flushAndRunServer, + createSingleServer, makeHTMLRequest, + PeerTubeServer, PluginsCommand, - ServerInfo, setAccessTokensToServers -} from '../../../shared/extra-utils' - -const expect = chai.expect +} from '@shared/server-commands' describe('Test plugins HTML injection', function () { - let server: ServerInfo = null + let server: PeerTubeServer = null let command: PluginsCommand before(async function () { this.timeout(30000) - server = await flushAndRunServer(1) + server = await createSingleServer(1) await setAccessTokensToServers([ server ]) - command = server.pluginsCommand + command = server.plugins }) it('Should not inject global css file in HTML', async function () {