"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");
const MessageBox_1 = require("./MessageBox");
describe('MessageBox', () => {
    it('should render Message box', () => {
        (0, react_2.render)(react_1.default.createElement(MessageBox_1.MessageBox, null,
            react_1.default.createElement(react_1.default.Fragment, null, "Chatbot Messages")));
        expect(react_2.screen.getByText('Chatbot Messages')).toBeTruthy();
    });
    it('should assign ref to Message box', () => {
        const ref = react_1.default.createRef();
        (0, react_2.render)(react_1.default.createElement(MessageBox_1.MessageBox, { ref: ref },
            react_1.default.createElement("div", null, "Test message content")));
        expect(ref.current).not.toBeNull();
        expect(ref.current).toBeInstanceOf(HTMLDivElement);
    });
});
