This repository was archived by the owner on Oct 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #673 from SuperViz/lab
Migrating Video and Presences components to new IO
- Loading branch information
Showing
65 changed files
with
4,182 additions
and
2,561 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import { jest } from '@jest/globals'; | ||
|
||
import { ParticipantType } from '../src/common/types/participant.types'; | ||
import { RealtimeStateTypes } from '../src/common/types/realtime.types'; | ||
import { Logger, Observer } from '../src/common/utils'; | ||
import { IOC } from '../src/services/io'; | ||
import { RoomStateService } from '../src/services/roomState'; | ||
|
||
import { MOCK_LOCAL_PARTICIPANT } from './participants.mock'; | ||
|
||
export const ROOM_STATE_MOCK = { | ||
room: new IOC(MOCK_LOCAL_PARTICIPANT).createRoom('mock_room'), | ||
logger: new Logger('@superviz/sdk/roomStateMock'), | ||
myParticipant: { ...MOCK_LOCAL_PARTICIPANT, type: ParticipantType.HOST }, | ||
enableSync: true, | ||
isSyncFrozen: false, | ||
left: false, | ||
state: RealtimeStateTypes.CONNECTED, | ||
MESSAGE_SIZE_LIMIT: 60000, | ||
useStore: jest.fn(), | ||
kickParticipantObserver: new Observer(), | ||
join: jest.fn(), | ||
updateMyProperties: jest.fn(), | ||
isMessageTooBig: jest.fn(), | ||
updateRoomProperties: jest.fn(), | ||
setHost: jest.fn(), | ||
setKickParticipant: jest.fn(), | ||
setGridMode: jest.fn(), | ||
setDrawing: jest.fn(), | ||
setTranscript: jest.fn(), | ||
initializeRoomProperties: jest.fn(), | ||
onParticipantLeave: jest.fn(), | ||
fetchRoomProperties: jest.fn(), | ||
onJoinRoom: jest.fn(), | ||
publishStateUpdate: jest.fn(), | ||
onPresenceEnter: jest.fn(), | ||
setFollowParticipant: jest.fn(), | ||
setGather: jest.fn(), | ||
updateLocalRoomState: jest.fn(), | ||
freezeSync: jest.fn(), | ||
destroy: jest.fn(), | ||
} as unknown as RoomStateService; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.