diff options
author | Philip Molares | 2021-02-15 09:42:51 +0100 |
---|---|---|
committer | Philip Molares | 2021-02-15 12:15:14 +0100 |
commit | 136d895d155f28c2e75b3af206549acaa2a354ed (patch) | |
tree | ad80595f5dd94a7ac63bc1481943ae7b356ddb17 /test | |
parent | b0a45bdf9c531d93a2462c09d58b2e9e703a0a66 (diff) |
Linter: Fix all lint errors
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Diffstat (limited to 'test')
-rw-r--r-- | test/csp.js | 12 | ||||
-rw-r--r-- | test/letter-avatars.js | 4 |
2 files changed, 8 insertions, 8 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() diff --git a/test/letter-avatars.js b/test/letter-avatars.js index 8cc32d8b..0645ef87 100644 --- a/test/letter-avatars.js +++ b/test/letter-avatars.js @@ -9,7 +9,7 @@ describe('generateAvatarURL() gravatar enabled', function () { let avatars beforeEach(function () { // Reset config to make sure we don't influence other tests - let testconfig = { + const testconfig = { allowGravatar: true, serverURL: 'http://localhost:3000', port: 3000 @@ -32,7 +32,7 @@ describe('generateAvatarURL() gravatar disabled', function () { let avatars beforeEach(function () { // Reset config to make sure we don't influence other tests - let testconfig = { + const testconfig = { allowGravatar: false, serverURL: 'http://localhost:3000', port: 3000 |