]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/client.ts
Add migrations for abuse messages
[github/Chocobozzz/PeerTube.git] / server / tests / client.ts
index 648d46414edf5782caf8ca45493a419048ea16f3..2d8468c0608e3d4d5c946fa71d61f7c934c7943b 100644 (file)
@@ -163,8 +163,10 @@ describe('Test a client controllers', function () {
       .set('Accept', 'text/html')
       .expect(200)
 
-    const expectedLink = '<link rel="alternate" type="application/json+oembed" href="http://localhost:9001/services/oembed?' +
-      `url=http%3A%2F%2Flocalhost%3A9001%2Fvideos%2Fwatch%2F${server.video.uuid}" ` +
+    const port = server.port
+
+    const expectedLink = '<link rel="alternate" type="application/json+oembed" href="http://localhost:' + port + '/services/oembed?' +
+      `url=http%3A%2F%2Flocalhost%3A${port}%2Fvideos%2Fwatch%2F${server.video.uuid}" ` +
       `title="${server.video.name}" />`
 
     expect(res.text).to.contain(expectedLink)