aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--server/tests/client.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/tests/client.ts b/server/tests/client.ts
index 4f0d052c8..a91bec906 100644
--- a/server/tests/client.ts
+++ b/server/tests/client.ts
@@ -24,7 +24,10 @@ function checkIndexTags (html: string, title: string, description: string, css:
24 expect(html).to.contain('<style class="custom-css-style">' + css + '</style>') 24 expect(html).to.contain('<style class="custom-css-style">' + css + '</style>')
25 25
26 const htmlConfig: HTMLServerConfig = omit(config, 'signup') 26 const htmlConfig: HTMLServerConfig = omit(config, 'signup')
27 expect(html).to.contain(`<script type="application/javascript">window.PeerTubeServerConfig = '${JSON.stringify(htmlConfig)}'</script>`) 27 const configObjectString = JSON.stringify(htmlConfig)
28 const configEscapedString = JSON.stringify(configObjectString)
29
30 expect(html).to.contain(`<script type="application/javascript">window.PeerTubeServerConfig = ${configEscapedString}</script>`)
28} 31}
29 32
30describe('Test a client controllers', function () { 33describe('Test a client controllers', function () {