diff options
author | Mike Greiling <mike@pixelcog.com> | 2018-03-06 21:17:52 +0000 |
---|---|---|
committer | Clement Ho <clemmakesapps@gmail.com> | 2018-03-06 21:17:52 +0000 |
commit | a898a2ab8744bc3a7a4d00fae7682c635aa30c19 (patch) | |
tree | 519597ebbd7f36fd245070eaf0e9c95fb4e97f27 /spec/javascripts/environments | |
parent | 47e866b3786ff69166d7f2e2bd952084ab37a2e8 (diff) | |
download | gitlab-ce-a898a2ab8744bc3a7a4d00fae7682c635aa30c19.tar.gz |
Remove common_vue bundle
Diffstat (limited to 'spec/javascripts/environments')
-rw-r--r-- | spec/javascripts/environments/environments_app_spec.js | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/spec/javascripts/environments/environments_app_spec.js b/spec/javascripts/environments/environments_app_spec.js index 5bb37304372..e4c3bf2bef1 100644 --- a/spec/javascripts/environments/environments_app_spec.js +++ b/spec/javascripts/environments/environments_app_spec.js @@ -61,6 +61,7 @@ describe('Environment', () => { }); describe('with paginated environments', () => { + let backupInterceptors; const environmentsResponseInterceptor = (request, next) => { next((response) => { response.headers.set('X-nExt-pAge', '2'); @@ -84,16 +85,16 @@ describe('Environment', () => { }; beforeEach(() => { - Vue.http.interceptors.push(environmentsResponseInterceptor); - Vue.http.interceptors.push(headersInterceptor); + backupInterceptors = Vue.http.interceptors; + Vue.http.interceptors = [ + environmentsResponseInterceptor, + headersInterceptor, + ]; component = mountComponent(EnvironmentsComponent, mockData); }); afterEach(() => { - Vue.http.interceptors = _.without( - Vue.http.interceptors, environmentsResponseInterceptor, - ); - Vue.http.interceptors = _.without(Vue.http.interceptors, headersInterceptor); + Vue.http.interceptors = backupInterceptors; }); it('should render a table with environments', (done) => { |