mirror of https://github.com/Chocobozzz/PeerTube
19 lines
662 B
TypeScript
19 lines
662 B
TypeScript
|
/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
|
||
|
|
||
|
import { expect } from 'chai'
|
||
|
import { PeerTubeServer } from '@peertube/peertube-server-commands'
|
||
|
|
||
|
async function testHelloWorldRegisteredSettings (server: PeerTubeServer) {
|
||
|
const body = await server.plugins.getRegisteredSettings({ npmName: 'peertube-plugin-hello-world' })
|
||
|
|
||
|
const registeredSettings = body.registeredSettings
|
||
|
expect(registeredSettings).to.have.length.at.least(1)
|
||
|
|
||
|
const adminNameSettings = registeredSettings.find(s => s.name === 'admin-name')
|
||
|
expect(adminNameSettings).to.not.be.undefined
|
||
|
}
|
||
|
|
||
|
export {
|
||
|
testHelloWorldRegisteredSettings
|
||
|
}
|