karma & rubocop fixes

This commit is contained in:
Phil Hughes 2018-07-03 10:13:59 +01:00
parent 5428e91374
commit c1322ab992
No known key found for this signature in database
GPG Key ID: 32245528C52E0F9F
2 changed files with 5 additions and 3 deletions

View File

@ -533,10 +533,10 @@ module API
class MergeRequestBasic < ProjectEntity
expose :title_html, if: -> (_, options) { options[:render_html] } do |entity|
MarkupHelper::markdown_field(entity, :title)
MarkupHelper.markdown_field(entity, :title)
end
expose :description_html, if: -> (_, options) { options[:render_html] } do |entity|
MarkupHelper::markdown_field(entity, :description)
MarkupHelper.markdown_field(entity, :description)
end
expose :target_branch, :source_branch
expose :upvotes do |merge_request, options|

View File

@ -39,7 +39,9 @@ describe('IDE store merge request actions', () => {
store
.dispatch('getMergeRequestData', { projectId: 'abcproject', mergeRequestId: 1 })
.then(() => {
expect(service.getProjectMergeRequestData).toHaveBeenCalledWith('abcproject', 1);
expect(service.getProjectMergeRequestData).toHaveBeenCalledWith('abcproject', 1, {
render_html: true,
});
done();
})