import React from 'react';
import ReactTestRenderer from 'react-test-renderer';
import VideoLink from 'app/shared/components/videoLink/videoLink';

describe('Video link compontnet tests', () => {
  it('Renders correctly', () => {
    const tree = ReactTestRenderer
      .create(<VideoLink text='Test' url='https://www.youtube.com/watch?v=wZZ7oFKsKzY' />)
      .toJSON();
    expect(tree).toMatchSnapshot();
  });
});
