import React from 'react';
import { expect } from 'chai';
import BackgroundVideo from 'react-background-video';

import { render } from 'enzyme';

describe('<BackgroundVideo />', () => {
  it('is instantiable', () => {
    const wrapper = render(<BackgroundVideo />);
    expect(wrapper).to.not.equal(null);
  });
});

@@ -121,16 +121,23 @@
 %7B render
+, mount
  %7D from 
@@ -313,13 +313,839 @@
 );%0A  %7D);
+%0A%0A  it('passes in videos', () =%3E %7B%0A    const videos = %5B%7B%0A      src: 'http://download.blender.org/peach/bigbuckbunny_movies/BigBuckBunny_320x180.mp4',%0A      type: 'mp4',%0A    %7D%5D;%0A%0A    const wrapper = render(%3CBackgroundVideo videos=%7Bvideos%7D /%3E);%0A    expect(wrapper).to.not.equal(null);%0A  %7D);%0A%0A  it('calls %60componentWillUnmount%60 when unmounting', () =%3E %7B%0A    sinon.spy(BackgroundVideo.prototype, 'componentWillUnmount');%0A%0A    const videos = %5B%7B%0A      src: 'http://download.blender.org/peach/bigbuckbunny_movies/BigBuckBunny_320x180.mp4',%0A      type: 'mp4',%0A    %7D%5D;%0A%0A    const wrapper = mount(%3CBackgroundVideo videos=%7Bvideos%7D /%3E);%0A    expect(BackgroundVideo.prototype.componentWillUnmount.calledOnce).to.equal(false);%0A    wrapper.unmount();%0A    expect(BackgroundVideo.prototype.componentWillUnmount.calledOnce).to.equal(true);%0A  %7D);
 %0A%7D);%0A

Update tests