diff options
author | Chocobozzz <me@florianbigard.com> | 2021-10-08 11:06:02 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-10-08 11:06:40 +0200 |
commit | 655c957cc3004c4b4841538486f009511573cdf2 (patch) | |
tree | 822241e6136171b6866201933a5207ecf6b834a1 /server/tests/client.ts | |
parent | 4d3e611dd2764d1d5d0a7e777312631e1e7005d4 (diff) | |
download | PeerTube-655c957cc3004c4b4841538486f009511573cdf2.tar.gz PeerTube-655c957cc3004c4b4841538486f009511573cdf2.tar.zst PeerTube-655c957cc3004c4b4841538486f009511573cdf2.zip |
Stop indexing /about/peertube
Diffstat (limited to 'server/tests/client.ts')
-rw-r--r-- | server/tests/client.ts | 10 |
1 files changed, 10 insertions, 0 deletions
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 () { | |||
482 | } | 482 | } |
483 | } | 483 | } |
484 | }) | 484 | }) |
485 | |||
486 | it('Should add noindex header for some paths', async function () { | ||
487 | const paths = [ '/about/peertube' ] | ||
488 | |||
489 | for (const path of paths) { | ||
490 | const { headers } = await makeHTMLRequest(servers[0].url, path) | ||
491 | |||
492 | expect(headers['x-robots-tag']).to.equal('noindex') | ||
493 | } | ||
494 | }) | ||
485 | }) | 495 | }) |
486 | 496 | ||
487 | describe('Embed HTML', function () { | 497 | describe('Embed HTML', function () { |