]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/client.ts
Add missing start and count parameters to playlist video list API endpoint documentation
[github/Chocobozzz/PeerTube.git] / server / tests / client.ts
index a91bec9068988ee1ffc835bd9d104bc27e65735d..6c32c81db813851dc7184c5796c907dd454db66d 100644 (file)
@@ -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 () {