import React from 'react';
import renderer from 'react-test-renderer'; // eslint-disable-line import/no-extraneous-dependencies

import Label from './index';

test('Alert renders correctly', () => {
  const tree = renderer.create(
    <div>
      <Label type="danger">Couldnt load the company.</Label>
      <Label type="success">loaded the company.</Label>
      <Label type="info">loading the company.</Label>
    </div>
  ).toJSON();
  expect(tree).toMatchSnapshot();
});
