/* eslint-disable jest/require-top-level-describe */
import { render } from '@testing-library/react';
import React from 'react';
import { Icon, IconName } from '..';
import { HeaderBase } from './header-base';
describe('HeaderBase', () => {
it('should render HeaderBase element correctly', () => {
const { getByTestId, container } = render(
should render HeaderBase element correctly
,
);
expect(getByTestId('header-base')).toHaveClass('mm-header-base');
expect(container).toMatchSnapshot();
});
it('should render with added classname', () => {
const { getByTestId } = render(
should render HeaderBase element correctly
,
);
expect(getByTestId('header-base')).toHaveClass('mm-header-base--test');
});
it('should render HeaderBase children', () => {
const { getByText } = render(
HeaderBase children test,
);
expect(getByText('HeaderBase children test')).toBeDefined();
});
it('should render HeaderBase startAccessory', () => {
const { getByTestId } = render(
}
/>,
);
expect(getByTestId('start-accessory')).toBeDefined();
});
it('should render HeaderBase endAccessory', () => {
const { getByTestId } = render(
}
/>,
);
expect(getByTestId('end-accessory')).toBeDefined();
});
});