提交 087680d7 编写于 作者: G Grzegorz Bizon 提交者: Filipa Lacerda

Fix deployment entity tests

Fixes style lint errors
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册