Skip to content

Commit

Permalink
resolve error message from DetailPageHeader test (carbon-design-syste…
Browse files Browse the repository at this point in the history
…m#356)

* removed unneeded extra shallow rendering in individual test
  • Loading branch information
sam1463 authored and aeweidne committed Jan 17, 2017
1 parent c36ae52 commit d26e4e1
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions components/__tests__/DetailPageHeader-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,16 +88,8 @@ describe('DetailPageHeader', () => {
});

it('should be able to hide the breadcrumb', () => {
const nobreadcrumbWrapper = shallow(
<DetailPageHeader
title="test"
hideBreadcrumb
onBackLinkClick={() => {}}
>
<div className="child"></div>
</DetailPageHeader>
);
const breadcrumb = nobreadcrumbWrapper.find('.bx--detail-page-header--with-tabs__breadcrumb');
wrapper.setProps({ hideBreadcrumb: true });
const breadcrumb = wrapper.find('.bx--detail-page-header--with-tabs__breadcrumb');
expect(breadcrumb.hasClass('bx--visually-hidden')).toBe(true);
});
});
Expand Down

0 comments on commit d26e4e1

Please sign in to comment.