X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Ffeeds%2Ffeeds.ts;h=4dcd77ccac4fbd627c2ee46c449559f17a79e312;hb=4393b2552c4ecb9fe43ff78480da0826c04709c0;hp=74cbaeb6de3c592c677eb299794d032cd7bfc49b;hpb=21f2df5d3b3b5c3cf50884845de246e7b22f60e9;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/feeds/feeds.ts b/server/tests/feeds/feeds.ts index 74cbaeb6d..4dcd77cca 100644 --- a/server/tests/feeds/feeds.ts +++ b/server/tests/feeds/feeds.ts @@ -156,9 +156,10 @@ describe('Test syndication feeds', () => { const enclosure = xmlDoc.rss.channel.item[0].enclosure expect(enclosure).to.exist - expect(enclosure['@_type']).to.equal('application/x-bittorrent') + + expect(enclosure['@_type']).to.equal('video/webm') expect(enclosure['@_length']).to.equal(218910) - expect(enclosure['@_url']).to.contain('720.torrent') + expect(enclosure['@_url']).to.contain('-720.webm') } }) @@ -274,8 +275,8 @@ describe('Test syndication feeds', () => { const jsonObj = JSON.parse(json) expect(jsonObj.items.length).to.be.equal(2) - expect(jsonObj.items[0].html_content).to.contain('

super comment 2

') - expect(jsonObj.items[1].html_content).to.contain('

super comment 1

') + expect(jsonObj.items[0].content_html).to.contain('

super comment 2

') + expect(jsonObj.items[1].content_html).to.contain('

super comment 1

') } })