import React from 'react';

import Notification from './index';

const data = {
  message: 'Notification',
};

describe('Notification', () => {
  const defaultElement = <Notification {...data} />;
  let wrapper;

  beforeEach(() => {
    wrapper = shallow(defaultElement);
  });

  it('should render correctly', () => {
    expect(wrapper).toMatchSnapshot();
  });

  it('should display notification', () => {
    expect(wrapper.setProps({ isOpen: true })).toMatchSnapshot();
  });
});
