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