import * as React from 'react';
import render from '../../_utils/tests/render';
import Tag from '../Tag';
import Set from '../../Set';
it('renders correctly', () => {
const { container } = render(Tag);
expect(container.firstChild).toMatchSnapshot();
});
describe('colors', () => {
['danger', 'success', 'warning', 'primary'].forEach(color => {
it(`renders correctly for a tag with color ${color}`, () => {
const { container } = render(Test);
expect(container.firstChild).toMatchSnapshot();
});
});
});
describe('sizes', () => {
['medium', 'large'].forEach(size => {
it(`renders correctly for a tag with size ${size}`, () => {
const { container } = render(Test);
expect(container.firstChild).toMatchSnapshot();
});
});
});
it('renders correctly for a list of tags', () => {
const { container } = render(
Tag 1
Tag 2
Tag 3
);
expect(container.firstChild).toMatchSnapshot();
});
it('renders correctly for an outlined tag', () => {
const { container } = render(Outlined tag);
expect(container.firstChild).toMatchSnapshot();
});