import React, { Component } from 'react'
import { render } from 'react-dom'
import withAutofillProps from './withAutofillProps'
import { equal } from 'assert'

describe('withAutofillProps', () => {
  it('wraps the name of the original component', () => {
    function Input(props) {
      return <input {...props} />
    }

    const EnhancedInput = withAutofillProps({ autofill: true })(Input)

    equal(EnhancedInput.displayName, 'withAutofillProps(Input)')
  })
})

@@ -9,70 +9,20 @@
 eact
-, %7B Component %7D from 'react'%0Aimport %7B render %7D from 'react-dom
+ from 'react
 '%0Aim

remove unused imports