import React from 'react' import assert from 'assert' import { shallow } from 'enzyme' import HexToDecimal from '../hex-to-decimal.component' describe('HexToDecimal Component', () => { it('should render a prefixed hex as a decimal with a className', () => { const wrapper = shallow() assert.ok(wrapper.hasClass('hex-to-decimal')) assert.equal(wrapper.text(), '12345') }) it('should render an unprefixed hex as a decimal with a className', () => { const wrapper = shallow() assert.ok(wrapper.hasClass('hex-to-decimal')) assert.equal(wrapper.text(), '6789') }) })