diff --git a/app/assets/javascripts/jobs/components/job_app.vue b/app/assets/javascripts/jobs/components/job_app.vue index fa20603b302..4bc8fa53554 100644 --- a/app/assets/javascripts/jobs/components/job_app.vue +++ b/app/assets/javascripts/jobs/components/job_app.vue @@ -123,7 +123,9 @@ export default { job(newVal, oldVal) { if (_.isEmpty(oldVal) && !_.isEmpty(newVal.pipeline)) { this.fetchJobsForStage( - this.job.pipeline.details.stages.find(stage => stage && stage.name === this.selectedStage), + this.job.pipeline.details.stages.find( + stage => stage && stage.name === this.selectedStage, + ), ); } diff --git a/spec/javascripts/jobs/mock_data.js b/spec/javascripts/jobs/mock_data.js index f913db41d31..e37520f1f1a 100644 --- a/spec/javascripts/jobs/mock_data.js +++ b/spec/javascripts/jobs/mock_data.js @@ -995,7 +995,7 @@ export default { }, duration: 6, finished_at: '2017-06-01T17:32:00.042Z', - stages: stages, + stages, }, ref: { name: 'abc', diff --git a/spec/serializers/deployment_entity_spec.rb b/spec/serializers/deployment_entity_spec.rb index 37614cc0b4c..76ad2aee5c5 100644 --- a/spec/serializers/deployment_entity_spec.rb +++ b/spec/serializers/deployment_entity_spec.rb @@ -107,7 +107,7 @@ describe DeploymentEntity do it 'only exposes deployable name and path' do project_job_path(project, deployment.deployable).tap do |path| expect(subject.fetch(:deployable)) - .to eq('name' => 'test', 'build_path' => path) + .to eq(name: 'test', build_path: path) end end end