import React from 'react'
import { HomeView } from 'routes/Home/components/HomeView'
import { render } from 'enzyme'

describe('(View) Home', () => {
  let _component

  beforeEach(() => {
    _component = render(<HomeView />)
  })

  it('Renders a welcome message', () => {
    const welcome = _component.find('header')
    expect(welcome).to.exist
    expect(welcome.text()).to.match(/About Max Rojas/)
  })

  it('Renders a bio of the painter', () => {
    const bio = _component.find('p')
    expect(bio).to.exist
    expect(bio.find('strong').text()).to.match(/Max Rojas Vargas/)
  })

})

import React from 'react'
import { HomeView } from 'routes/Home/components/HomeView'
import { render } from 'enzyme'

describe('(View) Home', () => {
  let _component

  beforeEach(() => {
    _component = render(<HomeView />)
  })

  it('Renders a welcome message', () => {
    const welcome = _component.find('h4')
    expect(welcome).to.exist
    expect(welcome.text()).to.match(/Welcome!/)
  })

  it('Renders an awesome duck image', () => {
    const duck = _component.find('img')
    expect(duck).to.exist
    expect(duck.attr('alt')).to.match(/This is a duck, because Redux!/)
  })

})

--- 
+++ 
@@ -10,15 +10,15 @@
   })
 
   it('Renders a welcome message', () => {
-    const welcome = _component.find('h4')
+    const welcome = _component.find('header')
     expect(welcome).to.exist
-    expect(welcome.text()).to.match(/Welcome!/)
+    expect(welcome.text()).to.match(/About Max Rojas/)
   })
 
-  it('Renders an awesome duck image', () => {
-    const duck = _component.find('img')
-    expect(duck).to.exist
-    expect(duck.attr('alt')).to.match(/This is a duck, because Redux!/)
+  it('Renders a bio of the painter', () => {
+    const bio = _component.find('p')
+    expect(bio).to.exist
+    expect(bio.find('strong').text()).to.match(/Max Rojas Vargas/)
   })
 
 })
Update tests for Home View
