diff --git a/app/assets/javascripts/environments/components/environment.js.es6 b/app/assets/javascripts/environments/components/environment.js.es6 index 42b32811e4f..0b8e1a0f898 100644 --- a/app/assets/javascripts/environments/components/environment.js.es6 +++ b/app/assets/javascripts/environments/components/environment.js.es6 @@ -76,6 +76,10 @@ $(() => { }, }, + /** + * Fetches all the environmnets and stores them. + * Toggles loading property. + */ created() { window.gl.environmentsService = new EnvironmentsService(this.endpoint); @@ -94,14 +98,6 @@ $(() => { }); }, - /** - * Fetches all the environmnets and stores them. - * Toggles loading property. - */ - mounted() { - - }, - /** * Transforms the url parameter into an object and * returns the one requested. diff --git a/spec/javascripts/vue_common_components/commit_spec.js.es6 b/spec/javascripts/vue_common_components/commit_spec.js.es6 index 2345e0af8eb..0e3b82967c1 100644 --- a/spec/javascripts/vue_common_components/commit_spec.js.es6 +++ b/spec/javascripts/vue_common_components/commit_spec.js.es6 @@ -1,11 +1,9 @@ //= require vue_common_component/commit describe('Commit component', () => { - let props; let component; - it('should render a code-fork icon if it does not represent a tag', () => { fixture.set('
'); component = new window.gl.CommitComponent({