Migrated ShortUrlVisitsHeader test to react testing library

This commit is contained in:
Alejandro Celaya
2022-06-11 08:53:48 +02:00
parent 6bd628712e
commit 84435714f5
2 changed files with 25 additions and 26 deletions

View File

@@ -35,7 +35,7 @@ export const ShortUrlVisitsHeader = ({ shortUrlDetail, shortUrlVisits, goBack }:
<VisitsHeader title={visitsStatsTitle} goBack={goBack} visits={visits} shortUrl={shortUrl}>
<hr />
<div>Created: {renderDate()}</div>
<div>
<div className="long-url-container">
{`${title ? 'Title' : 'Long URL'}: `}
{loading && <small>Loading...</small>}
{!loading && <ExternalLink href={longLink}>{title ?? longLink}</ExternalLink>}