From 1bbca0ad6a265cc66137f0e073b38b73f0cfc649 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B4mulo=20Penido?= Date: Wed, 24 Apr 2024 10:08:38 -0300 Subject: [PATCH] test: add comments --- src/search-modal/SearchResult.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/search-modal/SearchResult.jsx b/src/search-modal/SearchResult.jsx index 725c4b1ab3..620608b8be 100644 --- a/src/search-modal/SearchResult.jsx +++ b/src/search-modal/SearchResult.jsx @@ -69,7 +69,8 @@ function getUnitComponentUrlSuffix(hit) { } } - return `course/${contextKey}/`; + // istanbul ignore next - This case should never be reached + return `course/${contextKey}`; } /** @@ -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]);