]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/api/server/homepage.ts
Introduce playlist command
[github/Chocobozzz/PeerTube.git] / server / tests / api / server / homepage.ts
index 4a3ec0479d386f3d054c72cf898297a962ebd1f8..c08067f3c9540e48cff738468fec7bc93fa6f458 100644 (file)
@@ -3,12 +3,10 @@
 import 'mocha'
 import * as chai from 'chai'
 import { HttpStatusCode } from '@shared/core-utils'
-import { ServerConfig } from '@shared/models'
 import {
   cleanupTests,
   CustomPagesCommand,
   flushAndRunServer,
-  getConfig,
   killallServers,
   reRunServer,
   ServerInfo,
@@ -18,9 +16,8 @@ import {
 const expect = chai.expect
 
 async function getHomepageState (server: ServerInfo) {
-  const res = await getConfig(server.url)
+  const config = await server.configCommand.getConfig()
 
-  const config = res.body as ServerConfig
   return config.homepage.enabled
 }