Fix ts in tests for build (#8189)
This commit is contained in:
parent
5fa2ca83ac
commit
4d14128d94
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ describe('<RecordingPlayback />', () => {
|
||||||
const mockChannelData = new Float32Array();
|
const mockChannelData = new Float32Array();
|
||||||
|
|
||||||
const defaultRoom = { roomId: '!room:server.org', timelineRenderingType: TimelineRenderingType.File };
|
const defaultRoom = { roomId: '!room:server.org', timelineRenderingType: TimelineRenderingType.File };
|
||||||
const getComponent = (props: React.ComponentProps<RecordingPlayback>, room = defaultRoom) =>
|
const getComponent = (props: React.ComponentProps<typeof RecordingPlayback>, room = defaultRoom) =>
|
||||||
mount(<RecordingPlayback {...props} />, {
|
mount(<RecordingPlayback {...props} />, {
|
||||||
wrappingComponent: RoomContext.Provider,
|
wrappingComponent: RoomContext.Provider,
|
||||||
wrappingComponentProps: { value: room },
|
wrappingComponentProps: { value: room },
|
||||||
|
|
Loading…
Reference in a new issue