Skip to content

Commit

Permalink
Fix ParticipantInfo tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Mendoza committed Sep 11, 2020
1 parent 84a2f14 commit 94399ba
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
16 changes: 0 additions & 16 deletions src/components/ParticipantInfo/ParticipantInfo.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,20 +102,4 @@ describe('the ParticipantInfo component', () => {
);
expect(wrapper.text()).not.toContain('mockIdentity (You)');
});

it('should add the isDominantSpeaker class when the participant is not the dominant speaker', () => {
mockUseIsTrackSwitchedOff.mockImplementation(() => false);
mockUsePublications.mockImplementation(() => [{ trackName: 'camera-123456' }]);
const wrapper = shallow(
<ParticipantInfo
onClick={() => {}}
isSelected={false}
participant={{ identity: 'mockIdentity' } as any}
isDominantSpeaker
>
mock children
</ParticipantInfo>
);
expect(wrapper.find('.makeStyles-container-1').prop('className')).toContain('isDominantSpeaker');
});
});
1 change: 0 additions & 1 deletion src/components/ParticipantInfo/ParticipantInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ interface ParticipantInfoProps {
children: React.ReactNode;
onClick: () => void;
isSelected: boolean;
isDominantSpeaker?: boolean;
isLocalParticipant?: boolean;
}

Expand Down

0 comments on commit 94399ba

Please sign in to comment.