/**
 * Tests
 */

import React from 'react';
import { expect } from 'chai';
import { shallow, mount, render } from 'enzyme';
import {
  TextApp1,
  TextApp2,
  TextApp3,
} from './TestApp';

describe('Test to create a basic form', () => {

  it('The form is rendered correctly', () => {
    const item = shallow(<TextApp1 />);
    expect(item.exists()).to.equal(true);
    expect(item.node.props.formControl).to.be.an.instanceOf(Object);
  });

});

@@ -91,21 +91,21 @@
 ow, 
-mount, render
+render, mount
  %7D f
@@ -290,20 +290,19 @@
   const 
-item
+app
  = shall
@@ -304,16 +304,23 @@
 shallow(
+%0A      
 %3CTextApp
@@ -325,10 +325,39 @@
 pp1 
-/%3E
+values=%7B%7B email: '' %7D%7D /%3E,%0A    
 );%0A 
@@ -366,20 +366,19 @@
  expect(
-item
+app
 .exists(
@@ -411,12 +411,11 @@
 ect(
-item
+app
 .nod
@@ -471,12 +471,272 @@
 %0A  %7D);%0A%0A
+  it('The form attribute is correct', () =%3E %7B%0A    const app = render(%0A      %3CTextApp1 values=%7B%7B email: '' %7D%7D /%3E,%0A    );%0A    const item = app.find('#email');%0A    expect(item.attr('name')).to.equal('email');%0A    expect(item.attr('id')).to.equal('email');%0A  %7D);%0A%0A
 %7D);%0A

add test .