Commit 087680d7 authored by Grzegorz Bizon's avatar Grzegorz Bizon Committed by Filipa Lacerda

Fix deployment entity tests

Fixes style lint errors
parent 536b0224
......@@ -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,
),
);
}
......
......@@ -995,7 +995,7 @@ export default {
},
duration: 6,
finished_at: '2017-06-01T17:32:00.042Z',
stages: stages,
stages,
},
ref: {
name: 'abc',
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment