X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fserver%2Fplugins.ts;h=76d3e248162958da9c356624b7502f3187bfa55d;hb=7b51ede977c299a74728171d8c124bcc4cbba6ea;hp=db03d026a720a4a744f18c4249861dbd9c7706a5;hpb=254d3579f5338f5fd775c17d15cdfc37078bcfb4;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/server/plugins.ts b/server/tests/api/server/plugins.ts index db03d026a..76d3e2481 100644 --- a/server/tests/api/server/plugins.ts +++ b/server/tests/api/server/plugins.ts @@ -2,18 +2,17 @@ import 'mocha' import * as chai from 'chai' -import { HttpStatusCode } from '@shared/core-utils' +import { testHelloWorldRegisteredSettings } from '@server/tests/shared' +import { wait } from '@shared/core-utils' +import { HttpStatusCode, PluginType } from '@shared/models' import { cleanupTests, createSingleServer, killallServers, - PluginsCommand, PeerTubeServer, - setAccessTokensToServers, - testHelloWorldRegisteredSettings, - wait -} from '@shared/extra-utils' -import { PluginType } from '@shared/models' + PluginsCommand, + setAccessTokensToServers +} from '@shared/server-commands' const expect = chai.expect @@ -100,9 +99,11 @@ describe('Test plugins', function () { const theme = config.theme.registered.find(r => r.name === 'background-red') expect(theme).to.not.be.undefined + expect(theme.npmName).to.equal('peertube-theme-background-red') const plugin = config.plugin.registered.find(r => r.name === 'hello-world') expect(plugin).to.not.be.undefined + expect(plugin.npmName).to.equal('peertube-plugin-hello-world') }) it('Should update the default theme in the configuration', async function () {