From 14770bd4257f76e533236ef0f973415241291f29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matuzale=CC=81m=20S=2E=20Teles?= Date: Thu, 15 Feb 2018 18:39:10 -0300 Subject: [PATCH] Add tests | Fixes #536 --- packages/clay-icon/src/__tests__/ClayIcon.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/packages/clay-icon/src/__tests__/ClayIcon.js b/packages/clay-icon/src/__tests__/ClayIcon.js index 68edc37bd2..e6836e5a6e 100644 --- a/packages/clay-icon/src/__tests__/ClayIcon.js +++ b/packages/clay-icon/src/__tests__/ClayIcon.js @@ -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(); + }); });