2020-11-27 11:41:38 +01:00
|
|
|
/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
|
|
|
|
|
|
|
|
import { expect } from 'chai'
|
2021-07-07 10:33:49 +02:00
|
|
|
import { ServerInfo } from '../server/servers'
|
2019-07-11 17:23:24 +02:00
|
|
|
|
2020-11-27 11:41:38 +01:00
|
|
|
async function testHelloWorldRegisteredSettings (server: ServerInfo) {
|
2021-07-07 10:33:49 +02:00
|
|
|
const body = await server.pluginsCommand.getRegisteredSettings({ npmName: 'peertube-plugin-hello-world' })
|
2020-11-27 11:41:38 +01:00
|
|
|
|
2021-07-07 10:33:49 +02:00
|
|
|
const registeredSettings = body.registeredSettings
|
2020-11-27 11:41:38 +01:00
|
|
|
expect(registeredSettings).to.have.length.at.least(1)
|
|
|
|
|
|
|
|
const adminNameSettings = registeredSettings.find(s => s.name === 'admin-name')
|
|
|
|
expect(adminNameSettings).to.not.be.undefined
|
|
|
|
}
|
|
|
|
|
2019-07-11 17:23:24 +02:00
|
|
|
export {
|
2021-07-07 10:33:49 +02:00
|
|
|
testHelloWorldRegisteredSettings
|
2019-07-11 17:23:24 +02:00
|
|
|
}
|