From 42cc1887afc80e10ff40675621fe683c76537a18 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 8 Oct 2021 11:06:02 +0200 Subject: Stop indexing /about/peertube --- server/tests/client.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'server/tests/client.ts') diff --git a/server/tests/client.ts b/server/tests/client.ts index a91bec906..6c32c81db 100644 --- a/server/tests/client.ts +++ b/server/tests/client.ts @@ -482,6 +482,16 @@ describe('Test a client controllers', function () { } } }) + + it('Should add noindex header for some paths', async function () { + const paths = [ '/about/peertube' ] + + for (const path of paths) { + const { headers } = await makeHTMLRequest(servers[0].url, path) + + expect(headers['x-robots-tag']).to.equal('noindex') + } + }) }) describe('Embed HTML', function () { -- cgit v1.2.3