import * as chai from 'chai'
import {
addVideoChannel,
+ cleanupTests,
createUser,
- flushTests,
- killallServers,
- makeGetRequest,
flushAndRunServer,
+ makeGetRequest,
ServerInfo,
setAccessTokensToServers,
uploadVideo
expect(res.text).to.contain('xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"')
expect(res.text).to.contain('<url><loc>http://localhost:9001/about/instance</loc></url>')
- expect(res.text).to.contain('<video:title><![CDATA[video 1]]></video:title>')
- expect(res.text).to.contain('<video:title><![CDATA[video 2]]></video:title>')
- expect(res.text).to.not.contain('<video:title><![CDATA[video 3]]></video:title>')
+ expect(res.text).to.contain('<video:title>video 1</video:title>')
+ expect(res.text).to.contain('<video:title>video 2</video:title>')
+ expect(res.text).to.not.contain('<video:title>video 3</video:title>')
expect(res.text).to.contain('<url><loc>http://localhost:9001/video-channels/channel1</loc></url>')
expect(res.text).to.contain('<url><loc>http://localhost:9001/video-channels/channel2</loc></url>')
})
})
- after(function () {
- killallServers([ server ])
+ after(async function () {
+ await cleanupTests([ server ])
})
})