aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/feeds
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/feeds')
-rw-r--r--server/tests/feeds/feeds.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/tests/feeds/feeds.ts b/server/tests/feeds/feeds.ts
index 55b434846..a1c976fd3 100644
--- a/server/tests/feeds/feeds.ts
+++ b/server/tests/feeds/feeds.ts
@@ -2,7 +2,7 @@
2 2
3import 'mocha' 3import 'mocha'
4import * as chai from 'chai' 4import * as chai from 'chai'
5import * as xmlParser from 'fast-xml-parser' 5import { parse, validate } from 'fast-xml-parser'
6import { 6import {
7 cleanupTests, 7 cleanupTests,
8 createMultipleServers, 8 createMultipleServers,
@@ -149,9 +149,9 @@ describe('Test syndication feeds', () => {
149 it('Should contain a valid enclosure (covers RSS 2.0 endpoint)', async function () { 149 it('Should contain a valid enclosure (covers RSS 2.0 endpoint)', async function () {
150 for (const server of servers) { 150 for (const server of servers) {
151 const rss = await server.feed.getXML({ feed: 'videos' }) 151 const rss = await server.feed.getXML({ feed: 'videos' })
152 expect(xmlParser.validate(rss)).to.be.true 152 expect(validate(rss)).to.be.true
153 153
154 const xmlDoc = xmlParser.parse(rss, { parseAttributeValue: true, ignoreAttributes: false }) 154 const xmlDoc = parse(rss, { parseAttributeValue: true, ignoreAttributes: false })
155 155
156 const enclosure = xmlDoc.rss.channel.item[0].enclosure 156 const enclosure = xmlDoc.rss.channel.item[0].enclosure
157 expect(enclosure).to.exist 157 expect(enclosure).to.exist