import React from 'react'; import { MaterialClear } from '@t3n/icons'; import { renderWithTheme } from '../helper/renderWithTheme'; import Tag from './Tag'; test('Tag Variants matches snapshot', () => { const { container } = renderWithTheme( <> primary tag secondary tag inverse tag black tag small primary tag small secondary tag small inverse tag small black tag , {}, ); expect(container).toMatchSnapshot(); }); test('Icon is rendered within the tag', () => { const { container } = renderWithTheme( }> Tag with Icon , {}, ); expect(container.getElementsByTagName('svg')).not.toBeNull(); });