]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/api/server/no-client.ts
Handle oembed with params in URL
[github/Chocobozzz/PeerTube.git] / server / tests / api / server / no-client.ts
index f45222f2f4846cf44858925a790476da846372a2..1e0c95a3b12da4073dff662739527a7050d12ff5 100644 (file)
@@ -1,8 +1,7 @@
 import 'mocha'
-import * as request from 'supertest'
-import { PeerTubeServer } from '../../../../shared/extra-utils'
-import { cleanupTests, createSingleServer } from '../../../../shared/extra-utils/server/servers'
-import { HttpStatusCode } from '../../../../shared/core-utils/miscs/http-error-codes'
+import request from 'supertest'
+import { cleanupTests, createSingleServer, PeerTubeServer } from '@shared/extra-utils'
+import { HttpStatusCode } from '@shared/models'
 
 describe('Start and stop server without web client routes', function () {
   let server: PeerTubeServer
@@ -10,7 +9,7 @@ describe('Start and stop server without web client routes', function () {
   before(async function () {
     this.timeout(30000)
 
-    server = await createSingleServer(1, {}, [ '--no-client' ])
+    server = await createSingleServer(1, {}, { peertubeArgs: [ '--no-client' ] })
   })
 
   it('Should fail getting the client', function () {