"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const react_1 = __importDefault(require("react"));
const react_2 = require("@testing-library/react");
require("@testing-library/jest-dom");
const Compare_1 = __importDefault(require("./Compare"));
const firstChild = (react_1.default.createElement("div", null,
    react_1.default.createElement("h1", null, "Child 1")));
const secondChild = (react_1.default.createElement("div", null,
    react_1.default.createElement("h1", null, "Child 2")));
describe('Compare', () => {
    it('should render compare correctly', () => {
        (0, react_2.render)(react_1.default.createElement(Compare_1.default, { firstChildDisplayName: "Child 1", secondChildDisplayName: "Child 2", firstChild: firstChild, secondChild: secondChild }));
        expect(react_2.screen.getByRole('heading', { name: /Child 1/i })).toBeTruthy();
        expect(react_2.screen.getByRole('heading', { name: /Child 2/i })).toBeTruthy();
    });
});
