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('', function () { it('should render the simple div', function () { // const wrapper = mount(); const wrapper = mount(
hello world
); let html = wrapper.find('#divId').html(); let offset = wrapper.instance(); let thisOffset = $(offset).offset(); expect(html).to.not.be.null; })});