X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fmisc-endpoints.ts;h=3d02243232c9f71e85d7b6f3be807a9e8f0631bb;hb=797d05bdd99b63104522051d0f61f1e0f003e780;hp=32b035c9ef63f15ab1d9f7ef160a24c6264a03f6;hpb=610d0be13b3d01f653ef269271dd667a57c85ef2;p=github%2FChocobozzz%2FPeerTube.git
diff --git a/server/tests/misc-endpoints.ts b/server/tests/misc-endpoints.ts
index 32b035c9e..3d0224323 100644
--- a/server/tests/misc-endpoints.ts
+++ b/server/tests/misc-endpoints.ts
@@ -122,7 +122,7 @@ describe('Test misc endpoints', function () {
})
expect(res.text).to.contain('xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"')
- expect(res.text).to.contain('http://localhost:9001/about/instance')
+ expect(res.text).to.contain('http://localhost:' + server.port + '/about/instance')
})
it('Should get the empty cached sitemap', async function () {
@@ -133,7 +133,7 @@ describe('Test misc endpoints', function () {
})
expect(res.text).to.contain('xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"')
- expect(res.text).to.contain('http://localhost:9001/about/instance')
+ expect(res.text).to.contain('http://localhost:' + server.port + '/about/instance')
})
it('Should add videos, channel and accounts and get sitemap', async function () {
@@ -156,17 +156,17 @@ describe('Test misc endpoints', function () {
})
expect(res.text).to.contain('xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"')
- expect(res.text).to.contain('http://localhost:9001/about/instance')
+ expect(res.text).to.contain('http://localhost:' + server.port + '/about/instance')
expect(res.text).to.contain('video 1')
expect(res.text).to.contain('video 2')
expect(res.text).to.not.contain('video 3')
- expect(res.text).to.contain('http://localhost:9001/video-channels/channel1')
- expect(res.text).to.contain('http://localhost:9001/video-channels/channel2')
+ expect(res.text).to.contain('http://localhost:' + server.port + '/video-channels/channel1')
+ expect(res.text).to.contain('http://localhost:' + server.port + '/video-channels/channel2')
- expect(res.text).to.contain('http://localhost:9001/accounts/user1')
- expect(res.text).to.contain('http://localhost:9001/accounts/user2')
+ expect(res.text).to.contain('http://localhost:' + server.port + '/accounts/user1')
+ expect(res.text).to.contain('http://localhost:' + server.port + '/accounts/user2')
})
})