Commit c22d0387 authored by Winnie Hellmann's avatar Winnie Hellmann Committed by Sean McGivern

Add projects endpoint to IssuablesHelper

parent 1d647b8e
......@@ -22,6 +22,7 @@ module EE
data[:issueLinksEndpoint] = group_epic_issues_path(parent, issuable)
data[:epicLinksEndpoint] = group_epic_links_path(parent, issuable)
data[:fullPath] = parent.full_path
data[:projectsEndpoint] = expose_path(api_v4_groups_projects_path(id: parent.id))
end
data
......
......@@ -35,7 +35,8 @@ describe IssuablesHelper do
initialTitleText: epic.title,
initialDescriptionHtml: '<p dir="auto">epic text</p>',
initialDescriptionText: 'epic text',
initialTaskStatus: '0 of 0 tasks completed'
initialTaskStatus: '0 of 0 tasks completed',
projectsEndpoint: "/api/v4/groups/#{@group.id}/projects"
}
expect(helper.issuable_initial_data(epic)).to eq(expected_data)
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