import * as React from 'react';
import { mount } from 'enzyme';
import Video, { VideoType } from '../Video';
describe('', () => {
const poster = new URL('http://placehold.it/150x150');
const singleVideoSource = [
{
src: 'http://www.sample-videos.com/video/mp4/720/big_buck_bunny_720p_1mb.mp4',
type: VideoType.MP4,
}];
const multiVideoSource = [
{
src: 'http://www.sample-videos.com/video/mp4/480/big_buck_bunny_480p_30mb.mp4',
type: VideoType.MP4,
},
{
src: 'http://www.sample-videos.com/video/mp4/240/big_buck_bunny_240p_30mb.mp4',
type: VideoType.MP4,
}];
describe('when default props are provided', () => {
it('video should be rendered with default props', () => {
const subject = mount(