From 8cd53fe68631f0594e7d1d6cf53d37ab6c0268ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B4mulo=20Penido?= Date: Tue, 16 Apr 2024 19:38:15 -0300 Subject: [PATCH] test: remove coverage from library cases --- src/search-modal/SearchResult.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/search-modal/SearchResult.jsx b/src/search-modal/SearchResult.jsx index 61ad088fdb..6744f48675 100644 --- a/src/search-modal/SearchResult.jsx +++ b/src/search-modal/SearchResult.jsx @@ -128,14 +128,16 @@ const SearchResult = ({ hit, closeSearch }) => { e.stopPropagation(); if (!redirectUrl) { - return; + // This case is for the library authoring MFE + return; // pragma: no cover } if ('key' in e && e.key !== 'Enter' && e.key !== ' ') { return; } - if (redirectUrl.startsWith('http')) { + if (redirectUrl.startsWith('http')) { // pragma: no cover + // This case is for the library authoring MFE window.location.href = redirectUrl; return; }