MetaPhase-Consulting/State-TalentMAP

View on GitHub
src/Components/BidTracker/OverlayAlert/InPanelAlert/InPanelAlert.test.jsx

Summary

Maintainability
A
0 mins
Test Coverage
import { shallow } from 'enzyme';
import toJSON from 'enzyme-to-json';
import InPanelAlert from './InPanelAlert';

describe('InPanelAlertComponent', () => {
  it('is defined', () => {
    const wrapper = shallow(
      <InPanelAlert title="test" date="6.11.17" />,
    );
    expect(wrapper).toBeDefined();
  });

  it('matches snapshot', () => {
    const wrapper = shallow(
      <InPanelAlert title="test" date="6.11.17" />,
    );
    expect(toJSON(wrapper)).toMatchSnapshot();
  });
});