mirror of
https://github.com/pavlobu/deskreen.git
synced 2025-05-29 05:40:08 -07:00
27 lines
839 B
TypeScript
27 lines
839 B
TypeScript
import React from 'react';
|
|
import renderer from 'react-test-renderer';
|
|
import PlayerControlPanel from '.';
|
|
import ScreenSharingSource from '../../features/PeerConnection/ScreenSharingSourceEnum';
|
|
import { VideoQuality } from '../../features/VideoAutoQualityOptimizer/VideoQualityEnum';
|
|
|
|
jest.useFakeTimers();
|
|
|
|
it('should match exact snapshot', () => {
|
|
const subject = renderer.create(
|
|
<>
|
|
<PlayerControlPanel
|
|
onSwitchChangedCallback={() => {}}
|
|
isPlaying
|
|
isDefaultPlayerTurnedOn
|
|
handleClickFullscreen={() => {}}
|
|
handleClickPlayPause={() => {}}
|
|
setVideoQuality={() => {}}
|
|
selectedVideoQuality={VideoQuality.Q_100_PERCENT}
|
|
screenSharingSourceType={ScreenSharingSource.SCREEN}
|
|
toaster={undefined}
|
|
/>
|
|
</>
|
|
);
|
|
expect(subject).toMatchSnapshot();
|
|
});
|