import React from 'react'; import { render } from 'react-testing-library'; import Circle from '../Circle'; describe('', () => { it('should render an
tag', () => { const { container } = render(); expect(container.firstChild.tagName).toEqual('DIV'); }); it('should have a class attribute', () => { const { container } = render(); expect(container.firstChild.hasAttribute('class')).toBe(true); }); it('should not adopt attributes', () => { const id = 'test'; const { container } = render(); expect(container.firstChild.hasAttribute('id')).toBe(false); }); });