"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 MessageDivider_1 = __importDefault(require("./MessageDivider"));
describe('MessageDivider', () => {
    beforeEach(() => {
        jest.clearAllMocks();
    });
    it('should render default correctly with variant = date and content = new Date().toLocaleDateString()', () => {
        (0, react_1.render)((0, jsx_runtime_1.jsx)(MessageDivider_1.default, { "data-testid": "message-divider" }));
        expect(react_1.screen.getByText(new Date().toLocaleDateString())).toBeInTheDocument();
        expect(react_1.screen.getByTestId('message-divider')).toHaveClass('pf-m-divider');
    });
    it('should render inset variant correctly', () => {
        (0, react_1.render)((0, jsx_runtime_1.jsx)(MessageDivider_1.default, { variant: "inset", content: "test", "data-testid": "message-divider" }));
        expect(react_1.screen.getByText('test')).toBeInTheDocument();
        expect(react_1.screen.getByTestId('message-divider')).toHaveClass('pf-m-divider');
    });
    it('should render fullWidth variant correctly', () => {
        (0, react_1.render)((0, jsx_runtime_1.jsx)(MessageDivider_1.default, { variant: "fullWidth", content: "test", "data-testid": "message-divider" }));
        expect(react_1.screen.getByText('test')).toBeInTheDocument();
        expect(react_1.screen.getByTestId('message-divider')).not.toHaveClass('pf-m-divider');
    });
});
