@centreon/react-components
Version:
react components used by centreon web frontend
28 lines (21 loc) • 580 B
JSX
/* eslint-disable no-undef */
import React from 'react';
import { render } from '@testing-library/react';
import MaterialIcon from '.';
describe('MaterialIcon', () => {
it('renders', () => {
const { container } = render(
<MaterialIcon>
<i />
</MaterialIcon>,
);
expect(container.firstChild).toMatchSnapshot();
});
});
describe('Hello World', () => {
it('renders', () => {
const HelloWorld = () => <h1>Hello World!</h1>;
const { container } = render(<HelloWorld />);
expect(container.firstChild).toMatchSnapshot();
});
});