diff options
author | gfyoung <gfyoung17@gmail.com> | 2018-06-15 15:58:27 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-06-15 15:58:27 +0000 |
commit | bce890820f6ed0e75537b546d5ef1a0090c53b52 (patch) | |
tree | a47c9f036bd4c52f74ffeded70c418f23ba57ae8 /spec/javascripts/blob/viewer/index_spec.js | |
parent | 72770e609d755a1abe304025424b8a90b7337842 (diff) | |
download | gitlab-ce-bce890820f6ed0e75537b546d5ef1a0090c53b52.tar.gz |
Enable no-restricted-globals in JS files
Diffstat (limited to 'spec/javascripts/blob/viewer/index_spec.js')
-rw-r--r-- | spec/javascripts/blob/viewer/index_spec.js | 4 |
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(); |