import { render } from 'enzyme';
import Pill from '../index';
const colors = [
'default',
'mineShaft',
'mountainMeadow',
'nobel',
'pictonBlue',
'pictonBlueDark',
'primary',
'secondary',
'treePoppy',
'valencia',
] as const;
describe('Badge', () => {
it('With colors', () => {
colors.forEach(color => {
expect(render(12)).toMatchSnapshot();
});
});
it('With solid colors', () => {
colors.forEach(color => {
expect(
render(
12
)
).toMatchSnapshot();
});
});
it('With smaller size', () => {
expect(render(12)).toMatchSnapshot();
});
});