aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-02-04 18:00:51 +0100
committerChocobozzz <me@florianbigard.com>2022-02-07 09:38:24 +0100
commit4393b2552c4ecb9fe43ff78480da0826c04709c0 (patch)
tree3449819109ee3635e59172e50eb2d500a2f2bdfb /server/tests
parent21f2df5d3b3b5c3cf50884845de246e7b22f60e9 (diff)
downloadPeerTube-4393b2552c4ecb9fe43ff78480da0826c04709c0.tar.gz
PeerTube-4393b2552c4ecb9fe43ff78480da0826c04709c0.tar.zst
PeerTube-4393b2552c4ecb9fe43ff78480da0826c04709c0.zip
Move to peertube feed fork
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/feeds/feeds.ts9
1 files changed, 5 insertions, 4 deletions
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', () => {
156 156
157 const enclosure = xmlDoc.rss.channel.item[0].enclosure 157 const enclosure = xmlDoc.rss.channel.item[0].enclosure
158 expect(enclosure).to.exist 158 expect(enclosure).to.exist
159 expect(enclosure['@_type']).to.equal('application/x-bittorrent') 159
160 expect(enclosure['@_type']).to.equal('video/webm')
160 expect(enclosure['@_length']).to.equal(218910) 161 expect(enclosure['@_length']).to.equal(218910)
161 expect(enclosure['@_url']).to.contain('720.torrent') 162 expect(enclosure['@_url']).to.contain('-720.webm')
162 } 163 }
163 }) 164 })
164 165
@@ -274,8 +275,8 @@ describe('Test syndication feeds', () => {
274 275
275 const jsonObj = JSON.parse(json) 276 const jsonObj = JSON.parse(json)
276 expect(jsonObj.items.length).to.be.equal(2) 277 expect(jsonObj.items.length).to.be.equal(2)
277 expect(jsonObj.items[0].html_content).to.contain('<p>super comment 2</p>') 278 expect(jsonObj.items[0].content_html).to.contain('<p>super comment 2</p>')
278 expect(jsonObj.items[1].html_content).to.contain('<p>super comment 1</p>') 279 expect(jsonObj.items[1].content_html).to.contain('<p>super comment 1</p>')
279 } 280 }
280 }) 281 })
281 282