diff options
author | gfyoung <gfyoung17@gmail.com> | 2018-06-15 18:58:27 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-06-15 18:58:27 +0300 |
commit | bce890820f6ed0e75537b546d5ef1a0090c53b52 (patch) | |
tree | a47c9f036bd4c52f74ffeded70c418f23ba57ae8 /spec/javascripts/settings_panels_spec.js | |
parent | 72770e609d755a1abe304025424b8a90b7337842 (diff) |
Enable no-restricted-globals in JS files
Diffstat (limited to 'spec/javascripts/settings_panels_spec.js')
-rw-r--r-- | spec/javascripts/settings_panels_spec.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/javascripts/settings_panels_spec.js b/spec/javascripts/settings_panels_spec.js index 4fba36bd4de..c1a69bd7018 100644 --- a/spec/javascripts/settings_panels_spec.js +++ b/spec/javascripts/settings_panels_spec.js @@ -9,11 +9,11 @@ describe('Settings Panels', () => { describe('initSettingsPane', () => { afterEach(() => { - location.hash = ''; + window.location.hash = ''; }); it('should expand linked hash fragment panel', () => { - location.hash = '#autodevops-settings'; + window.location.hash = '#autodevops-settings'; const pipelineSettingsPanel = document.querySelector('#autodevops-settings'); // Our test environment automatically expands everything so we need to clear that out first |