1
0
Fork 0
peertube/server/tests/shared/plugins.ts

19 lines
651 B
TypeScript
Raw Normal View History

/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
import { expect } from 'chai'
import { PeerTubeServer } from '@shared/server-commands'
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' })
2021-07-07 04:33:49 -04:00
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 {
2021-07-07 04:33:49 -04:00
testHelloWorldRegisteredSettings
}