diff options
author | Regis <boudinot.regis@yahoo.com> | 2017-01-09 09:19:55 -0700 |
---|---|---|
committer | Regis <boudinot.regis@yahoo.com> | 2017-01-09 09:19:55 -0700 |
commit | 76c68d1a185009b831bab014446829158ced2f17 (patch) | |
tree | 1cbed4cb52dd0774f21cacba1ea4b2d6427bf12c /spec | |
parent | 3fff93ca01008e73c320ce87a686c69bada5dac3 (diff) | |
download | gitlab-ce-76c68d1a185009b831bab014446829158ced2f17.tar.gz |
namespace getParametersByName to gl.utils instead of just gl
Diffstat (limited to 'spec')
-rw-r--r-- | spec/javascripts/vue_pagination/pagination_spec.js.es6 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/javascripts/vue_pagination/pagination_spec.js.es6 b/spec/javascripts/vue_pagination/pagination_spec.js.es6 index 3a57f69676f..c5f70ba5bfb 100644 --- a/spec/javascripts/vue_pagination/pagination_spec.js.es6 +++ b/spec/javascripts/vue_pagination/pagination_spec.js.es6 @@ -147,8 +147,8 @@ describe('paramHelper', () => { it('can parse url parameters correctly', () => { window.history.pushState({}, null, '?scope=all&p=2'); - const scope = gl.getParameterByName('scope'); - const p = gl.getParameterByName('p'); + const scope = gl.utils.getParameterByName('scope'); + const p = gl.utils.getParameterByName('p'); expect(scope).toEqual('all'); expect(p).toEqual('2'); @@ -157,8 +157,8 @@ describe('paramHelper', () => { it('returns null if param not in url', () => { window.history.pushState({}, null, '?p=2'); - const scope = gl.getParameterByName('scope'); - const p = gl.getParameterByName('p'); + const scope = gl.utils.getParameterByName('scope'); + const p = gl.utils.getParameterByName('p'); expect(scope).toEqual(null); expect(p).toEqual('2'); |