Skip to content

Commit

Permalink
Cover branch in WS source_icon
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen committed Dec 22, 2020
1 parent 862512e commit 724ef62
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,10 @@ describe('SourceIcon', () => {

expect(wrapper.find('.wrapped-icon')).toHaveLength(1);
});

it('renders a full bleed icon', () => {
const wrapper = shallow(<SourceIcon name="foo" fullBleed serviceType="custom" />);

expect(wrapper.find(EuiIcon).prop('type')).toEqual('test-file-stub');
});
});

0 comments on commit 724ef62

Please sign in to comment.