import React from 'react';
import { render } from '@testing-library/react';
import Alert from '../alert';
describe('', () => {
test('should render default', () => {
const { container } = render(default);
expect(container).toMatchSnapshot();
});
test('should render alert with type', () => {
const kinds: any[] = ['info', 'warning', 'positive', 'negative'];
const { getByText } = render(
<>
{kinds.map(k => (
{k}
))}
>,
);
kinds.forEach(k => {
expect(getByText(k)).toMatchSnapshot();
});
});
});