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
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 () {