25 lines
621 B
JavaScript
25 lines
621 B
JavaScript
import React from 'react';
|
|
import { shallow, mount, render } from 'enzyme';
|
|
import RouteSeeker from '../../components/RouteSeeker';
|
|
|
|
global.__JEST__ = 1;
|
|
|
|
test('RouteSeeker successfully mounts with minimal default props', () => {
|
|
const component = shallow(
|
|
<RouteSeeker
|
|
nearestFrameTime={0}
|
|
segmentProgress={() => {}}
|
|
videoLength={0}
|
|
segmentIndices={[]}
|
|
onUserSeek={() => {}}
|
|
onPlaySeek={() => {}}
|
|
videoElement={null}
|
|
onPlay={() => {}}
|
|
onPause={() => {}}
|
|
playing={false}
|
|
ratioTime={() => {}}
|
|
/>
|
|
);
|
|
expect(component.exists()).toBe(true);
|
|
});
|