import { expect } from 'chai';
import React from 'react';
import { mount } from 'enzyme';
import { ErrorBoundary } from '../../src/ui/commons/ErrorBoundary';
describe('ErrorBoundary', function () {
    it('Should show error view', function () {
        var ProblemComponent = function () { return null; };
        var Component = function () { return (React.createElement(ErrorBoundary, null,
            React.createElement(ProblemComponent, null))); };
        var wrapper = mount(React.createElement(Component, null));
        wrapper.find(ProblemComponent).simulateError('error');
        expect(wrapper.text()).include('Something went wrong...');
    });
});
//# sourceMappingURL=ErrorBoundary.test.js.map