Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgfyoung <gfyoung17@gmail.com>2018-06-15 18:58:27 +0300
committerPhil Hughes <me@iamphill.com>2018-06-15 18:58:27 +0300
commitbce890820f6ed0e75537b546d5ef1a0090c53b52 (patch)
treea47c9f036bd4c52f74ffeded70c418f23ba57ae8 /spec/javascripts/blob
parent72770e609d755a1abe304025424b8a90b7337842 (diff)
Enable no-restricted-globals in JS files
Diffstat (limited to 'spec/javascripts/blob')
-rw-r--r--spec/javascripts/blob/viewer/index_spec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/javascripts/blob/viewer/index_spec.js b/spec/javascripts/blob/viewer/index_spec.js
index f920c4ca945..8b79624d9f4 100644
--- a/spec/javascripts/blob/viewer/index_spec.js
+++ b/spec/javascripts/blob/viewer/index_spec.js
@@ -32,7 +32,7 @@ describe('Blob viewer', () => {
afterEach(() => {
mock.restore();
- location.hash = '';
+ window.location.hash = '';
});
it('loads source file after switching views', (done) => {
@@ -49,7 +49,7 @@ describe('Blob viewer', () => {
});
it('loads source file when line number is in hash', (done) => {
- location.hash = '#L1';
+ window.location.hash = '#L1';
new BlobViewer();