Skip to content

Commit

Permalink
Add istanbul comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafaboleken committed Dec 29, 2024
1 parent 4fbdd2f commit 50f4654
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions react/src/pages/LayoutPinned.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ function LayoutPinned (props) {
playingParticipants.push(props.videoTrackAssignments.find(e => e.streamId === pinnedParticipant.streamId));
pinnedParticipantName = props?.allParticipants[pinnedParticipant.streamId]?.name;

Check warning on line 32 in react/src/pages/LayoutPinned.js

View check run for this annotation

Codecov / codecov/patch

react/src/pages/LayoutPinned.js#L32

Added line #L32 was not covered by tests
}
/* istanbul ignore next */
return (
pinnedParticipant ? (
<div className="single-video-container pinned keep-ratio">
Expand Down Expand Up @@ -100,6 +101,7 @@ function LayoutPinned (props) {
if(element?.streamId !== pinnedParticipant?.streamId && playingParticipantsCount < maxPlayingParticipantsCount) {
playingParticipantsCount ++;
playingParticipants.push(element);
/* istanbul ignore next */
return (
<div className="unpinned" key={index}>
<div className="single-video-container">
Expand Down Expand Up @@ -143,6 +145,7 @@ function LayoutPinned (props) {
}

const othersCard = () => {
/* istanbul ignore next */
return (
<>
{showOthers ? (
Expand Down
1 change: 1 addition & 0 deletions react/src/pages/LayoutTiled.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ function LayoutTiled(props) {
}

//console.log("cw:"+cardWidth+" ch:"+cardHeight);
/* istanbul ignore next */
return (
<div
className="single-video-container not-pinned"
Expand Down

0 comments on commit 50f4654

Please sign in to comment.