"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var chai_1 = require("chai");
var react_1 = __importDefault(require("react"));
var enzyme_1 = require("enzyme");
var ErrorBoundary_1 = require("../../src/ui/commons/ErrorBoundary");
describe('ErrorBoundary', function () {
    it('Should show error view', function () {
        var ProblemComponent = function () { return null; };
        var Component = function () { return (react_1.default.createElement(ErrorBoundary_1.ErrorBoundary, null,
            react_1.default.createElement(ProblemComponent, null))); };
        var wrapper = enzyme_1.mount(react_1.default.createElement(Component, null));
        wrapper.find(ProblemComponent).simulateError('error');
        chai_1.expect(wrapper.text()).include('Something went wrong...');
    });
});
//# sourceMappingURL=ErrorBoundary.test.js.map