import React from 'react'; import { shallow, mount } from 'enzyme'; import Numeral from './'; import 'jest-styled-components'; describe('Numeral Component', () => { test('renders', () => { const wrapper = shallow(001); expect(wrapper).toMatchSnapshot(); }); test('the h1 text is equal to `001`', () => { const wrapper = mount(001); expect(wrapper.text()).toEqual('001'); }); });