diff --git a/components/plugin_marketplace/marketplace_item/__snapshots__/marketplace_item.test.js.snap b/components/plugin_marketplace/marketplace_item/__snapshots__/marketplace_item.test.js.snap index 7d28856d626e..6d9c88793346 100644 --- a/components/plugin_marketplace/marketplace_item/__snapshots__/marketplace_item.test.js.snap +++ b/components/plugin_marketplace/marketplace_item/__snapshots__/marketplace_item.test.js.snap @@ -32,7 +32,7 @@ exports[`components/MarketplaceItem MarketplaceItem should render 1`] = ` `; +exports[`components/MarketplaceItem MarketplaceItem should render with no plugin description 1`] = ` + +
+
+ +
+
+ + name + + (1.0.0) + + + +

+ + +

+
+ +
+ +
+ +`; + exports[`components/MarketplaceItem MarketplaceItem should render with no plugin icon 1`] = `

{labels} {labels} {description} diff --git a/components/plugin_marketplace/marketplace_item/marketplace_item.test.js b/components/plugin_marketplace/marketplace_item/marketplace_item.test.js index 1fe60658d6d9..9cc9e392f003 100644 --- a/components/plugin_marketplace/marketplace_item/marketplace_item.test.js +++ b/components/plugin_marketplace/marketplace_item/marketplace_item.test.js @@ -223,6 +223,17 @@ describe('components/MarketplaceItem', () => { expect(wrapper).toMatchSnapshot(); }); + test('should render with no plugin description', () => { + const props = {...baseProps}; + delete props.description; + + const wrapper = shallow( + , + ); + + expect(wrapper).toMatchSnapshot(); + }); + test('should render with no plugin icon', () => { const props = {...baseProps}; delete props.iconData;