X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fserver%2Fplugins.ts;h=76d3e248162958da9c356624b7502f3187bfa55d;hb=419b520ca4434d17f3505013174e195c3a316716;hp=5f9f4ffddf99bd8f27036e1208a4448aa9dda020;hpb=171efc48e67498406feb6d7873b3482b41505515;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/server/plugins.ts b/server/tests/api/server/plugins.ts index 5f9f4ffdd..76d3e2481 100644 --- a/server/tests/api/server/plugins.ts +++ b/server/tests/api/server/plugins.ts @@ -2,17 +2,17 @@ import 'mocha' import * as chai from 'chai' +import { testHelloWorldRegisteredSettings } from '@server/tests/shared' +import { wait } from '@shared/core-utils' +import { HttpStatusCode, PluginType } from '@shared/models' import { cleanupTests, createSingleServer, killallServers, PeerTubeServer, PluginsCommand, - setAccessTokensToServers, - testHelloWorldRegisteredSettings, - wait -} from '@shared/extra-utils' -import { HttpStatusCode, PluginType } from '@shared/models' + setAccessTokensToServers +} from '@shared/server-commands' const expect = chai.expect @@ -99,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 () {