import { expect } from 'chai'
import path from 'path'
import React from 'react'
import TestUtils from 'react-addons-test-utils'

import WebpackIsomorphicTools from 'webpack-isomorphic-tools'
import webpackIsomorphicToolsConfiguration from '../../src/webpack-isomorphic-tools-configuration'

import Author from '../../src/components/Author'

const webpackIsomorphicTools = new WebpackIsomorphicTools(webpackIsomorphicToolsConfiguration)

xdescribe('components/Author.jsx', () => {
  it('should render correctly', (done) => {
    webpackIsomorphicTools.server(path.resolve(__dirname, '..', '..'), () => {
      done()
    })
  })
})
@@ -84,359 +84,108 @@
 ort 
-TestUtils from 'react-addons-test-utils'%0A%0Aimport WebpackIsomorphicTools from 'webpack-isomorphic-tools'%0Aimport webpackIsomorphicToolsConfiguration from '../../src/webpack-isomorphic-tools-configuration'%0A%0Aimport Author from '../../src/components/Author'%0A%0Aconst webpackIsomorphicTools = new WebpackIsomorphicTools(webpackIsomorphicToolsConfiguration)%0A%0Ax
+%7B shallow %7D from 'enzyme'%0Aimport 'ignore-styles'%0A%0Aimport Author from '../../src/components/Author'%0A%0A
 desc
@@ -242,16 +242,39 @@
  render 
+an %60.author%60 component 
 correctl
@@ -278,20 +278,16 @@
 ctly', (
-done
 ) =%3E %7B%0A 
@@ -293,101 +293,310 @@
     
-webpackIsomorphicTools.server(path.resolve(__dirname, '..', '..'), () =%3E %7B%0A      done()%0A    %7D
+const wrapper = shallow(%3CAuthor /%3E)%0A    %0A    expect(wrapper.find('.author')).to.have.length(1)%0A    expect(wrapper.find('.avatar')).to.have.length(1)%0A    expect(wrapper.find('.description').text()).to.equal('Trust me I%5C'm Petdo')%0A    expect(wrapper.find('.location').text()).to.equal('Bangkok, Thailand'
 )%0A  

Create author component test