import expect from 'expect'
import reducer from './validator.reducer'
import * as types from './../actions/actionConsts'

describe('REDUCER: ', () => {

  const initialState = [{}];

  describe('validator.reducer.js', () => {

      it('should return the initial state', () => {
        expect(
          reducer(initialState, {})
        ).toEqual(
          initialState
        )
      })
    })

})

@@ -74,26 +74,34 @@
 ort 
-* as types
+%7B VALIDATE_INPUT %7D
  from '.
 /../
@@ -100,10 +100,8 @@
 m '.
-/.
 ./ac
@@ -119,16 +119,17 @@
 nConsts'
+;
 %0A%0Adescri
@@ -180,161 +180,683 @@
 e = 
-%5B%7B%7D%5D;%0A%0A  describe('validator.reducer.js', () =%3E %7B%0A%0A      it('should return the initial state', () =%3E %7B%0A        expect(%0A          reducer(initialState, %7B%7D
+%7B%0A    firstElement: %7B%0A      isValid: false,%0A      validationReport: %7B%0A        title: %22unknown%22,%0A        details: %22unknown element!%22%0A      %7D%0A    %7D%0A  %7D;%0A%0A  describe('validator.reducer.js', () =%3E %7B%0A%0A      it('should return the current state when action type is unknown', () =%3E %7B%0A        expect(%0A          reducer(initialState, %7B%7D)%0A        ).toEqual(%0A          initialState%0A        )%0A      %7D)%0A%0A      it('should add the validation result to state', () =%3E %7B%0A        expect(%0A          reducer(initialState,%0A            %7B%0A              type: VALIDATE_INPUT,%0A              inputId: %22firstElement%22,%0A              validationReport: initialState.validationReport%0A            %7D%0A          
 )%0A  

add test