import React from 'react'; import { shallow } from 'enzyme'; import CountBadge from '../CountBadge'; describe('components/badgeable/Badgeable', () => { test('should correctly render with default props', () => { const wrapper = shallow(); expect(wrapper).toMatchSnapshot(); }); test('should render proper classes when animateable', () => { const wrapper = shallow(); expect(wrapper.hasClass('animate')).toBeTruthy(); }); test('should render proper classes when visible', () => { const wrapper = shallow(); expect(wrapper.hasClass('is-visible')).toBeFalsy(); }); test('should handle custom classes', () => { const wrapper = shallow(); expect(wrapper.hasClass('test')).toBeTruthy(); }); });