diff --git a/package-lock.json b/package-lock.json index 03f7525..1d058ba 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@adobe/aem-core-components-react-base", - "version": "1.1.3", + "version": "1.1.9", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 59962cd..297539b 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@adobe/aem-core-components-react-base", - "version": "1.1.8", + "version": "1.1.9", "license": "Apache-2.0", "keywords": [ "adobe", diff --git a/src/authoring/teaser/v1/TeaserV1.test.tsx b/src/authoring/teaser/v1/TeaserV1.test.tsx index 74a092b..ff4f418 100644 --- a/src/authoring/teaser/v1/TeaserV1.test.tsx +++ b/src/authoring/teaser/v1/TeaserV1.test.tsx @@ -61,7 +61,7 @@ it('Renders as expected', ()=> { const content = element.find(".cmp-teaser__content"); expect(content).toHaveLength(1); - + //description const description = content.find('.cmp-teaser__description'); expect(description).toHaveLength(1); @@ -75,8 +75,8 @@ it('Renders as expected', ()=> { //title const title = content.find('.cmp-teaser__title'); expect(title).toHaveLength(1); - const expectedHtml = `
`; - expect(title.html()).toEqual(expectedHtml); + const expectedTitleHtml = ``; + expect(title.html()).toEqual(expectedTitleHtml); //image @@ -91,9 +91,10 @@ it('Renders as expected', ()=> { //actions const actionContainer = element.find(".cmp-teaser__action-container"); expect(actionContainer).toHaveLength(1); + const expectedActionContainerHtml = ``; + expect(actionContainer.html()).toEqual(expectedActionContainerHtml); const actions = actionContainer.find("a.cmp-teaser__action-link"); expect(actions).toHaveLength(2); - }); diff --git a/src/authoring/teaser/v1/TeaserV1.tsx b/src/authoring/teaser/v1/TeaserV1.tsx index 3a06832..05a018e 100644 --- a/src/authoring/teaser/v1/TeaserV1.tsx +++ b/src/authoring/teaser/v1/TeaserV1.tsx @@ -43,7 +43,7 @@ export interface TeaserV1Model extends RoutedCoreComponentModel{ } const generateLink = (props:TeaserV1Model, action:TeaserV1Action, index:number) => { - return