aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests
diff options
context:
space:
mode:
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