import React from 'react'; import { shallow, mount, render } from 'enzyme'; import HLS from '../../components/HLS'; test('HLS successfully mounts with minimal default props', () => { const component = shallow( {}} playing={false} onClick={() => {}} onLoadStart={() => {}} onLoadEnd={() => {}} onUserSeek={() => {}} onPlaySeek={() => {}} segmentProgress={() => {}} shouldRestart={false} onRestart={() => {}} /> ); expect(component.exists()).toBe(true); });