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 d2072342e..f9cf2b717 100644
--- a/server/tests/misc-endpoints.ts
+++ b/server/tests/misc-endpoints.ts
@@ -166,7 +166,7 @@ describe('Test misc endpoints', function () {
166 }) 166 })
167 167
168 expect(res.text).to.contain('xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"') 168 expect(res.text).to.contain('xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"')
169 expect(res.text).to.contain('<url><loc>http://localhost:' + server.port + '/about/instance</loc></url>') 169 expect(res.text).to.contain('<url><loc>' + server.url + '/about/instance</loc></url>')
170 }) 170 })
171 171
172 it('Should get the empty cached sitemap', async function () { 172 it('Should get the empty cached sitemap', async function () {
@@ -177,7 +177,7 @@ describe('Test misc endpoints', function () {
177 }) 177 })
178 178
179 expect(res.text).to.contain('xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"') 179 expect(res.text).to.contain('xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"')
180 expect(res.text).to.contain('<url><loc>http://localhost:' + server.port + '/about/instance</loc></url>') 180 expect(res.text).to.contain('<url><loc>' + server.url + '/about/instance</loc></url>')
181 }) 181 })
182 182
183 it('Should add videos, channel and accounts and get sitemap', async function () { 183 it('Should add videos, channel and accounts and get sitemap', async function () {
@@ -200,17 +200,17 @@ describe('Test misc endpoints', function () {
200 }) 200 })
201 201
202 expect(res.text).to.contain('xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"') 202 expect(res.text).to.contain('xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"')
203 expect(res.text).to.contain('<url><loc>http://localhost:' + server.port + '/about/instance</loc></url>') 203 expect(res.text).to.contain('<url><loc>' + server.url + '/about/instance</loc></url>')
204 204
205 expect(res.text).to.contain('<video:title>video 1</video:title>') 205 expect(res.text).to.contain('<video:title>video 1</video:title>')
206 expect(res.text).to.contain('<video:title>video 2</video:title>') 206 expect(res.text).to.contain('<video:title>video 2</video:title>')
207 expect(res.text).to.not.contain('<video:title>video 3</video:title>') 207 expect(res.text).to.not.contain('<video:title>video 3</video:title>')
208 208
209 expect(res.text).to.contain('<url><loc>http://localhost:' + server.port + '/video-channels/channel1</loc></url>') 209 expect(res.text).to.contain('<url><loc>' + server.url + '/video-channels/channel1</loc></url>')
210 expect(res.text).to.contain('<url><loc>http://localhost:' + server.port + '/video-channels/channel2</loc></url>') 210 expect(res.text).to.contain('<url><loc>' + server.url + '/video-channels/channel2</loc></url>')
211 211
212 expect(res.text).to.contain('<url><loc>http://localhost:' + server.port + '/accounts/user1</loc></url>') 212 expect(res.text).to.contain('<url><loc>' + server.url + '/accounts/user1</loc></url>')
213 expect(res.text).to.contain('<url><loc>http://localhost:' + server.port + '/accounts/user2</loc></url>') 213 expect(res.text).to.contain('<url><loc>' + server.url + '/accounts/user2</loc></url>')
214 }) 214 })
215 215
216 it('Should not fail with big title/description videos', async function () { 216 it('Should not fail with big title/description videos', async function () {