aboutsummaryrefslogblamecommitdiffhomepage
path: root/shared/extra-utils/server/plugins.ts
blob: d1cc7e383b4b610aaa5d8ec261a7a28c27a54d0a (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                                                              
                                              
 
                                                                      
                                                                                                     
 
                                                    





                                                                                 
        
                                  
 
/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */

import { expect } from 'chai'
import { ServerInfo } from '../server/servers'

async function testHelloWorldRegisteredSettings (server: ServerInfo) {
  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
}