Skip to content

Commit

Permalink
Fix deployment entity tests
Browse files Browse the repository at this point in the history
Fixes style lint errors
  • Loading branch information
grzesiek authored and Filipa Lacerda committed May 24, 2019
1 parent 536b022 commit 087680d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion app/assets/javascripts/jobs/components/job_app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
);
}
Expand Down
2 changes: 1 addition & 1 deletion spec/javascripts/jobs/mock_data.js
Original file line number Diff line number Diff line change
Expand Up @@ -995,7 +995,7 @@ export default {
},
duration: 6,
finished_at: '2017-06-01T17:32:00.042Z',
stages: stages,
stages,
},
ref: {
name: 'abc',
Expand Down
2 changes: 1 addition & 1 deletion spec/serializers/deployment_entity_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
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
Expand Down

0 comments on commit 087680d

Please sign in to comment.