Skip to content

Commit

Permalink
fix: use data.id for ContentPageletEntryPoint id (#151, #152)
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianGlass authored Mar 16, 2020
1 parent 274ca49 commit 0529af5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ describe('Server Html', () => {
response: {
definitionQualifiedName: 'app_sf_responsive_cm:pwa.include.homepage.pagelet2-Include',
displayName: 'PWA Homepage Content',
id: 'pwa.include.homepage.pagelet2-Include',
link: {
title: 'pwa.include.homepage.pagelet2-Include',
type: 'Link',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('Content Pagelet Entry Point Mapper', () => {
it('should convert a complex example to complex type', () => {
const input: ContentPageletEntryPointData = {
link: {
title: 'include-id',
title: 'Readable Title',
uri: 'uri://test',
type: 'ContentInclude',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class ContentPageletEntryPointMapper {
const configurationParameters = this.contentConfigurationParameterMapper.fromData(data.configurationParameters);

const pageletEntryPoint: ContentPageletEntryPoint = {
id: data.link.title,
id: data.id,
definitionQualifiedName: data.definitionQualifiedName,
displayName: data.displayName,
domain: data.domain,
Expand Down

0 comments on commit 0529af5

Please sign in to comment.