Skip to content

Commit

Permalink
test: add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rpenido committed Apr 24, 2024
1 parent 9901d9b commit 1bbca0a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/search-modal/SearchResult.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ function getUnitComponentUrlSuffix(hit) {
}
}

return `course/${contextKey}/`;
// istanbul ignore next - This case should never be reached
return `course/${contextKey}`;
}

/**
Expand Down Expand Up @@ -142,7 +143,7 @@ const SearchResult = ({ hit }) => {
}
}

// No context URL for this hit
// No context URL for this hit (e.g. a library without library authoring mfe)
return undefined;
}, [libraryAuthoringMfeUrl, redirectToLibraryAuthoringMfe, hit]);

Expand Down

0 comments on commit 1bbca0a

Please sign in to comment.