import Fade from './Fade.component';

describe('<Fade>', () => {
  it('Happy: Render Fade', () => {
    const json = renderJSON(
      <Fade id="test-id">
        <div> This is a children</div>
      </Fade>,
    );
    expect(json.type).toBe('div');
  });

  it('Happy: Mount Fade', () => {
    mount(
      <Fade id="test-id">
        <div> This is a children</div>
      </Fade>,
    );
  });

  it('SAD: without props', () => {
    expect(() => shallow(<Fade />)).toThrow();
  });
});
