aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/misc-endpoints.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/misc-endpoints.ts')
-rw-r--r--server/tests/misc-endpoints.ts14
1 files changed, 7 insertions, 7 deletions
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 () {
122 }) 122 })
123 123
124 expect(res.text).to.contain('xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"') 124 expect(res.text).to.contain('xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"')
125 expect(res.text).to.contain('<url><loc>http://localhost:9001/about/instance</loc></url>') 125 expect(res.text).to.contain('<url><loc>http://localhost:' + server.port + '/about/instance</loc></url>')
126 }) 126 })
127 127
128 it('Should get the empty cached sitemap', async function () { 128 it('Should get the empty cached sitemap', async function () {
@@ -133,7 +133,7 @@ describe('Test misc endpoints', function () {
133 }) 133 })
134 134
135 expect(res.text).to.contain('xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"') 135 expect(res.text).to.contain('xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"')
136 expect(res.text).to.contain('<url><loc>http://localhost:9001/about/instance</loc></url>') 136 expect(res.text).to.contain('<url><loc>http://localhost:' + server.port + '/about/instance</loc></url>')
137 }) 137 })
138 138
139 it('Should add videos, channel and accounts and get sitemap', async function () { 139 it('Should add videos, channel and accounts and get sitemap', async function () {
@@ -156,17 +156,17 @@ describe('Test misc endpoints', function () {
156 }) 156 })
157 157
158 expect(res.text).to.contain('xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"') 158 expect(res.text).to.contain('xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"')
159 expect(res.text).to.contain('<url><loc>http://localhost:9001/about/instance</loc></url>') 159 expect(res.text).to.contain('<url><loc>http://localhost:' + server.port + '/about/instance</loc></url>')
160 160
161 expect(res.text).to.contain('<video:title>video 1</video:title>') 161 expect(res.text).to.contain('<video:title>video 1</video:title>')
162 expect(res.text).to.contain('<video:title>video 2</video:title>') 162 expect(res.text).to.contain('<video:title>video 2</video:title>')
163 expect(res.text).to.not.contain('<video:title>video 3</video:title>') 163 expect(res.text).to.not.contain('<video:title>video 3</video:title>')
164 164
165 expect(res.text).to.contain('<url><loc>http://localhost:9001/video-channels/channel1</loc></url>') 165 expect(res.text).to.contain('<url><loc>http://localhost:' + server.port + '/video-channels/channel1</loc></url>')
166 expect(res.text).to.contain('<url><loc>http://localhost:9001/video-channels/channel2</loc></url>') 166 expect(res.text).to.contain('<url><loc>http://localhost:' + server.port + '/video-channels/channel2</loc></url>')
167 167
168 expect(res.text).to.contain('<url><loc>http://localhost:9001/accounts/user1</loc></url>') 168 expect(res.text).to.contain('<url><loc>http://localhost:' + server.port + '/accounts/user1</loc></url>')
169 expect(res.text).to.contain('<url><loc>http://localhost:9001/accounts/user2</loc></url>') 169 expect(res.text).to.contain('<url><loc>http://localhost:' + server.port + '/accounts/user2</loc></url>')
170 }) 170 })
171 }) 171 })
172 172