import * as React from 'react';
import { mount, shallow } from 'enzyme';
import { expect } from 'chai';
import * as $ from 'jquery';
import {SimpleDiv} from './testComponents/SimpleDiv';
import * as Adapter from 'enzyme-adapter-react-16';

import { render, configure} from 'enzyme';

configure({ adapter: new Adapter() });
//import {configure}  from 'enzyme';
//import Adapter from 'enzyme-adapter-react-16';


describe('<SimpleDiv/>', function () {
    it('should render the simple div', function () {
      //  const wrapper = mount<SimpleDiv>(<SimpleDiv/>);
      const wrapper = mount(<div style={{padding: '10px', margin:'5px', left:'10px'}} id='divId'>hello world</div>);  
      let html = wrapper.find('#divId').html();
        let offset = wrapper.instance();
        let thisOffset = $(offset).offset();
        expect(html).to.not.be.null;   
    })});
