2020-11-27 04:41:38 -06:00
|
|
|
/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
|
|
|
|
|
|
|
|
import { expect } from 'chai'
|
2021-07-16 02:47:51 -05:00
|
|
|
import { PeerTubeServer } from '../server/server'
|
2019-07-11 10:23:24 -05:00
|
|
|
|
2021-07-16 02:47:51 -05:00
|
|
|
async function testHelloWorldRegisteredSettings (server: PeerTubeServer) {
|
2021-07-16 02:04:35 -05:00
|
|
|
const body = await server.plugins.getRegisteredSettings({ npmName: 'peertube-plugin-hello-world' })
|
2020-11-27 04:41:38 -06:00
|
|
|
|
2021-07-07 03:33:49 -05:00
|
|
|
const registeredSettings = body.registeredSettings
|
2020-11-27 04:41:38 -06: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 10:23:24 -05:00
|
|
|
export {
|
2021-07-07 03:33:49 -05:00
|
|
|
testHelloWorldRegisteredSettings
|
2019-07-11 10:23:24 -05:00
|
|
|
}
|