summaryrefslogtreecommitdiff
path: root/test/csp.js
diff options
context:
space:
mode:
authorDavid Mehren2021-02-16 20:15:15 +0100
committerGitHub2021-02-16 20:15:15 +0100
commit59819be34c2428450528362a5bbb74b6424d15d2 (patch)
treead80595f5dd94a7ac63bc1481943ae7b356ddb17 /test/csp.js
parent6b8fa94402539168a5bd574ddcc17eeae4910bd0 (diff)
parent136d895d155f28c2e75b3af206549acaa2a354ed (diff)
Merge pull request #872 from hedgedoc/renovate/master-major-linters
Diffstat (limited to 'test/csp.js')
-rw-r--r--test/csp.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/csp.js b/test/csp.js
index d081cef0..70598156 100644
--- a/test/csp.js
+++ b/test/csp.js
@@ -46,7 +46,7 @@ describe('Content security policies', function () {
// beginnging Tests
it('Disable CDN', function () {
- let testconfig = defaultConfig
+ const testconfig = defaultConfig
testconfig.useCDN = false
mock('../lib/config', testconfig)
csp = mock.reRequire('../lib/csp')
@@ -60,7 +60,7 @@ describe('Content security policies', function () {
})
it('Disable Google Analytics', function () {
- let testconfig = defaultConfig
+ const testconfig = defaultConfig
testconfig.csp.addGoogleAnalytics = false
mock('../lib/config', testconfig)
csp = mock.reRequire('../lib/csp')
@@ -69,7 +69,7 @@ describe('Content security policies', function () {
})
it('Disable Disqus', function () {
- let testconfig = defaultConfig
+ const testconfig = defaultConfig
testconfig.csp.addDisqus = false
mock('../lib/config', testconfig)
csp = mock.reRequire('../lib/csp')
@@ -82,7 +82,7 @@ describe('Content security policies', function () {
})
it('Include dropbox if configured', function () {
- let testconfig = defaultConfig
+ const testconfig = defaultConfig
testconfig.dropbox.appKey = 'hedgedoc'
mock('../lib/config', testconfig)
csp = mock.reRequire('../lib/csp')
@@ -92,7 +92,7 @@ describe('Content security policies', function () {
})
it('Set ReportURI', function () {
- let testconfig = defaultConfig
+ const testconfig = defaultConfig
testconfig.csp.reportURI = 'https://example.com/reportURI'
mock('../lib/config', testconfig)
csp = mock.reRequire('../lib/csp')
@@ -101,7 +101,7 @@ describe('Content security policies', function () {
})
it('Set own directives', function () {
- let testconfig = defaultConfig
+ const testconfig = defaultConfig
mock('../lib/config', defaultConfig)
csp = mock.reRequire('../lib/csp')
const unextendedCSP = csp.computeDirectives()