Skip to content

Commit

Permalink
feat(Icon): add testid tests for Icon
Browse files Browse the repository at this point in the history
  • Loading branch information
chentsulin committed Feb 26, 2019
1 parent 080be48 commit 8f6204c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/tailor-ui/src/Icon/__tests__/Icon.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,12 @@ describe('Icon', () => {

expect(container.firstChild).toMatchSnapshot();
});

it('should support data-testid', () => {
const { getByTestId } = render(
<Icon type="understood" data-testid="my-icon" />
);

expect(getByTestId('my-icon')).toBeInTheDocument();
});
});

0 comments on commit 8f6204c

Please sign in to comment.