1
0
Fork 0

Fix client tests

This commit is contained in:
Chocobozzz 2021-09-09 09:47:59 +02:00
parent 29b84d749e
commit afe501a6cd
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View file

@ -24,7 +24,10 @@ function checkIndexTags (html: string, title: string, description: string, css:
expect(html).to.contain('<style class="custom-css-style">' + css + '</style>') expect(html).to.contain('<style class="custom-css-style">' + css + '</style>')
const htmlConfig: HTMLServerConfig = omit(config, 'signup') const htmlConfig: HTMLServerConfig = omit(config, 'signup')
expect(html).to.contain(`<script type="application/javascript">window.PeerTubeServerConfig = '${JSON.stringify(htmlConfig)}'</script>`) const configObjectString = JSON.stringify(htmlConfig)
const configEscapedString = JSON.stringify(configObjectString)
expect(html).to.contain(`<script type="application/javascript">window.PeerTubeServerConfig = ${configEscapedString}</script>`)
} }
describe('Test a client controllers', function () { describe('Test a client controllers', function () {