"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var react_1 = __importDefault(require("react"));
var react_2 = require("@testing-library/react");
var ErrorWrapper_1 = require("./ErrorWrapper");
describe('Error wrapper tests', function () {
    it('should render children and error message', function () {
        (0, react_2.render)(react_1.default.createElement(ErrorWrapper_1.ErrorWrapper, { errorMessage: "Some error message" },
            react_1.default.createElement("div", null, "Some content")));
        react_2.screen.getByText('Some content');
        react_2.screen.getByText('Some error message');
    });
    it('should render children without error message', function () {
        (0, react_2.render)(react_1.default.createElement(ErrorWrapper_1.ErrorWrapper, null,
            react_1.default.createElement("div", null, "Some content")));
        react_2.screen.getByText('Some content');
        expect(react_2.screen.queryByTestId('error-message')).not.toBeInTheDocument();
    });
});
