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