Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mgamis-msft committed Dec 3, 2024
1 parent 8821c92 commit 44b2ef0
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions packages/react-components/tests/browser/VideoGallery.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ test.describe('VGL - VideoGallery tests', () => {
})
);
// Assign video stream to some participants
remoteParticipants.find((p) => p.userId === '2')!.videoStream = { isAvailable: true };
remoteParticipants.find((p) => p.userId === '3')!.videoStream = { isAvailable: true };
remoteParticipants.find((p) => p.userId === '5')!.videoStream = { isAvailable: true };
remoteParticipants.find((p) => p.userId === '7')!.videoStream = { isAvailable: true };
remoteParticipants.find((p) => p.userId === '9')!.videoStream = { isAvailable: true };
remoteParticipants.forEach((p) => {
if (p.userId in ['2', '3', '5', '7', '9']) {
p.videoStream = { isAvailable: true };
}
});

const component = await mount(
<Stack styles={{ root: { width: '100vw', height: '100vh' } }}>
Expand Down Expand Up @@ -119,6 +119,7 @@ test.describe('VGL - VideoGallery tests', () => {
const remoteParticipants: VideoGalleryRemoteParticipant[] = Array.from({ length: 10 }, (_, i) => i + 1).map(
(i) => ({ userId: `${i}`, displayName: `${i}` })
);
remoteParticipants[7].spotlight = { spotlightedOrderPosition: 1 };
const screenSharingParticipant: VideoGalleryRemoteParticipant = {
userId: '11',
displayName: '11'
Expand All @@ -134,8 +135,6 @@ test.describe('VGL - VideoGallery tests', () => {
</Stack>
);
await expect(component).toHaveScreenshot('VGL-4-1-videogallery-before-spotlight.png');

remoteParticipants.find((p) => p.userId === '8')!.spotlight = { spotlightedOrderPosition: 1 };
component.update(
<Stack styles={{ root: { width: '100vw', height: '100vh' } }}>
<VideoGallery
Expand Down

0 comments on commit 44b2ef0

Please sign in to comment.