Fix deployment entity tests

Fixes style lint errors
This commit is contained in:
Grzegorz Bizon 2019-05-13 16:30:40 +02:00 committed by Filipa Lacerda
parent 536b022498
commit 087680d780
3 changed files with 5 additions and 3 deletions

View file

@ -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,
),
);
}

View file

@ -995,7 +995,7 @@ export default {
},
duration: 6,
finished_at: '2017-06-01T17:32:00.042Z',
stages: stages,
stages,
},
ref: {
name: 'abc',

View file

@ -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