import React from 'react'; import { shallow } from 'enzyme'; import Badgeable from '../Badgeable'; describe('components/badgeable/Badgeable', () => { test('should correctly render children in a badgeable wrapper without badges', () => { const children = 'some text to render'; const wrapper = shallow({children}); expect(wrapper).toMatchSnapshot(); }); test('should render badges to any corner when given an element', () => { const wrapper = shallow( bottom left

} bottomRight={

bottom right

} className="custom-class" topLeft={

top left

} topRight={

top right

} >
Test
, ); expect(wrapper).toMatchSnapshot(); }); });