diff options
author | Scott Escue <scott.escue@gmail.com> | 2018-12-02 09:46:11 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2019-01-10 09:00:39 +0300 |
commit | 87c571f8a3e9af9de0d979dc26f9838bb0fc924d (patch) | |
tree | 696c6b5f9e6d77996608acdd6f952826e2c52e8f /spec/javascripts/lib | |
parent | 2cbc475e5327a860032414561916c7bd725685ac (diff) |
Addressing feedback from most recent reviews.
Diffstat (limited to 'spec/javascripts/lib')
-rw-r--r-- | spec/javascripts/lib/utils/url_utility_spec.js | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/spec/javascripts/lib/utils/url_utility_spec.js b/spec/javascripts/lib/utils/url_utility_spec.js index 1ac1c414df7..381c7b2d0a6 100644 --- a/spec/javascripts/lib/utils/url_utility_spec.js +++ b/spec/javascripts/lib/utils/url_utility_spec.js @@ -1,4 +1,4 @@ -import UrlUtility, * as urlUtils from '~/lib/utils/url_utility'; +import * as urlUtils from '~/lib/utils/url_utility'; describe('URL utility', () => { describe('webIDEUrl', () => { @@ -86,20 +86,6 @@ describe('URL utility', () => { expect(url).toBe('/home?l=en_US#H2'); }); }); - - describe('when no url is passed', () => { - it('should remove params from window.location.href', () => { - spyOnDependency(UrlUtility, 'windowLocation').and.callFake(() => { - const anchor = document.createElement('a'); - anchor.href = 'https://mysite.com/?zip=11111&locale=en_US&ads=false#privacy'; - return anchor; - }); - - const url = urlUtils.removeParams(['locale']); - - expect(url).toBe('https://mysite.com/?zip=11111&ads=false#privacy'); - }); - }); }); describe('setUrlFragment', () => { |