import { render } from 'enzyme'; import Badge 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(Testing)).toMatchSnapshot(); }); }); it('With solid colors', () => { colors.forEach(color => { expect( render( Testing ) ).toMatchSnapshot(); }); }); it('With smaller size', () => { expect(render(Testing)).toMatchSnapshot(); }); it('With icon', () => { expect(render(Testing)).toMatchSnapshot(); }); });