message: remove outdated UnderlineNav tests
diff: @@ -41,84 +41,6 @@ describe('Caret', () => {
  expect(actions.text()).toEqual('hi!')
  })
  - it('adds the ITEM_CLASS to all children', () => {
  - const wrapper = mount(
  - <UnderlineNav>
  - <a href="#foo">hi</a>
  - </UnderlineNav>
  - )
  - expect(wrapper.find('a').props().className).toEqual(ITEM_CLASS)
  - })
  -
  - it('adds the SELECTED_CLASS to all children with selected={true}', () => {
  - const wrapper = mount(
  - <UnderlineNav>
  - <a href="#foo" selected>
  - hi
  - </a>
  - </UnderlineNav>
  - )
  - expect(wrapper.find('a').props().className).toEqual(`${ITEM_CLASS} ${SELECTED_CLASS}`)
  - })
  -
  - it('does not duplicate the SELECTED_CLASS on elements that have it', () => {
  - const wrapper = mount(
  - <UnderlineNav>
  - <a href="#foo" className="selected" selected>
  - hi
  - </a>
  - </UnderlineNav>
  - )
  - expect(wrapper.find('a').props().className).toEqual(`${ITEM_CLASS} ${SELECTED_CLASS}`)
  - })
  -
  - it('adds activeClassName={SELECTED_CLASS} to anything that looks like a react-router NavLink', () => {
  - function NavLink({activeClassName, ...rest}) {
  - return <button data-active-class={activeClassName} {...rest} />
  - }
  -
  - NavLink.propTypes = {
  - activeClassName: PropTypes.string
  - }
  -
  - const wrapper = mount(
  - <UnderlineNav>
  - <NavLink />
  - </UnderlineNav>
  - )
  - expect(wrapper.find('button').props()).toEqual({
  - className: ITEM_CLASS,
  - 'data-active-class': SELECTED_CLASS
  - })
  - })
  -
  - it('does not add duplicate ITEM_CLASS classes', () => {
  - const wrapper = mount(
  - <UnderlineNav>
  - <span className={ITEM_CLASS} />
  - </UnderlineNav>
  - )
  - expect(wrapper.find('span').props().className).toEqual(ITEM_CLASS)
  - })
  -
  - it('renders <UnderlineNavLink> as children', () => {
  - expect(
  - render(
  - <UnderlineNav>
  - <UnderlineNavLink href="#foo">Foo</UnderlineNavLink>
  - </UnderlineNav>
  - )
  - ).toEqual(
  - render(
  - <UnderlineNav>
  - <a href="#foo" className={ITEM_CLASS}>
  - Foo
  - </a>
  - </UnderlineNav>
  - )
  - )
  - })
  -
  it('respects margin utility prop', () => {
  expect(rendersClass(<UnderlineNav m={4} />, 'm-4')).toEqual(true)
  })
  