diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2016-10-27 10:51:44 +0100 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2016-11-16 11:58:06 +0000 |
commit | 14345b21509aa874cf8748a2ddcf34d3a632bd6c (patch) | |
tree | 7a48f79ed23c0b0ec89249e8e8fdcbf30fccfdad | |
parent | b1ec3cb8d2776070c80cba21d08774e563b42f84 (diff) | |
download | gitlab-ce-14345b21509aa874cf8748a2ddcf34d3a632bd6c.tar.gz |
Fix whitespace
-rw-r--r-- | app/assets/javascripts/environments/components/environment_item.js.es6 | 2 | ||||
-rw-r--r-- | spec/javascripts/environments/environments_store_spec.js.es6 | 6 |
2 files changed, 1 insertions, 7 deletions
diff --git a/app/assets/javascripts/environments/components/environment_item.js.es6 b/app/assets/javascripts/environments/components/environment_item.js.es6 index ab58e1cc4c0..76c815e8b9f 100644 --- a/app/assets/javascripts/environments/components/environment_item.js.es6 +++ b/app/assets/javascripts/environments/components/environment_item.js.es6 @@ -11,8 +11,6 @@ * for more information. */ - const Store = gl.environmentsList.EnvironmentsStore; - window.gl = window.gl || {}; window.gl.environmentsList = window.gl.environmentsList || {}; diff --git a/spec/javascripts/environments/environments_store_spec.js.es6 b/spec/javascripts/environments/environments_store_spec.js.es6 index db4ce41701c..8d0fea934c3 100644 --- a/spec/javascripts/environments/environments_store_spec.js.es6 +++ b/spec/javascripts/environments/environments_store_spec.js.es6 @@ -21,20 +21,16 @@ }); it('should count stopped environments and save the count in the state', () => { - - expect(gl.environmentsList.EnvironmentsStore.state.stoppedCounter).toBe(1); }); it('should count available environments and save the count in the state', () => { - expect(gl.environmentsList.EnvironmentsStore.state.availableCounter).toBe(2); }); it('should store environments with same environment_type as sibilings', () => { - expect(gl.environmentsList.EnvironmentsStore.state.environments.length).toBe(2); - + const parentFolder = gl.environmentsList.EnvironmentsStore.state.environments.filter((env) => { return env.children && env.children.length > 0; }); |