Skip to content

Commit

Permalink
Add tests | Fixes liferay#536
Browse files Browse the repository at this point in the history
  • Loading branch information
matuzalemsteles authored and Kien Do committed Feb 21, 2018
1 parent cadb5ec commit 970f7ea
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions packages/clay-icon/src/__tests__/ClayIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,23 @@ describe('ClayIcon', function() {

expect(clayIcon).toMatchSnapshot();
});

it('should render an icon with focusable to true', () => {
clayIcon = new ClayIcon({
focusable: true,
spritemap: spritemap,
symbol: 'add-cell',
});

expect(clayIcon).toMatchSnapshot();
});

it('should render an icon with focusable to false by default', () => {
clayIcon = new ClayIcon({
spritemap: spritemap,
symbol: 'add-cell',
});

expect(clayIcon).toMatchSnapshot();
});
});

0 comments on commit 970f7ea

Please sign in to comment.