import React from 'react';
import { render, screen } from '@testing-library/react';
import { MessageBox } from './MessageBox';
describe('MessageBox', () => {
    it('should render Message box', () => {
        render(React.createElement(MessageBox, null,
            React.createElement(React.Fragment, null, "Chatbot Messages")));
        expect(screen.getByText('Chatbot Messages')).toBeTruthy();
    });
    it('should assign ref to Message box', () => {
        const ref = React.createRef();
        render(React.createElement(MessageBox, { ref: ref },
            React.createElement("div", null, "Test message content")));
        expect(ref.current).not.toBeNull();
        expect(ref.current).toBeInstanceOf(HTMLDivElement);
    });
});
