Fix ts in tests for build (#8189)

This commit is contained in:
Michael Telatynski 2022-03-30 09:12:43 +01:00 committed by GitHub
parent 5fa2ca83ac
commit 4d14128d94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,7 +57,7 @@ describe('<RecordingPlayback />', () => {
const mockChannelData = new Float32Array();
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} />, {
wrappingComponent: RoomContext.Provider,
wrappingComponentProps: { value: room },