Skip to content

Commit

Permalink
update unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danielevalverde committed Jan 15, 2025
1 parent ed2a777 commit fcec710
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ const MediaSimilaritiesComponent = ({ projectMedia }) => (
mainProjectMediaConfirmedSimilarCount={projectMedia.confirmedSimilarCount}
mainProjectMediaDemand={projectMedia.demand}
mainProjectMediaId={projectMedia.id}
media_cluster_origin={relationship.node.target.media_cluster_origin}
media_cluster_origin_user={relationship.node.target.media_cluster_origin_user.name}
media_cluster_origin={relationship.node.target?.media_cluster_origin}
media_cluster_origin_user={relationship.node.target?.media_cluster_origin_user.name}
relationship={relationship.node}
relationshipSourceId={relationship.node.source_id}
relationshipTargetId={relationship.node.target_id}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ describe('<MediaSimilaritiesComponent />', () => {
dbid: 1,
source_id: 1,
target_id: 1,
target: {
media_cluster_origin: 1,
media_cluster_origin_user: {
name: 'test User',
},
}
},
},
{
Expand All @@ -26,6 +32,10 @@ describe('<MediaSimilaritiesComponent />', () => {
dbid: 2,
source_id: 1,
target_id: 1,
media_cluster_origin: 1,
media_cluster_origin_user: {
name: 'test User',
},
},
},
],
Expand Down

0 comments on commit fcec710

Please sign in to comment.