Skip to content

Commit d9a30d5

Browse files
committed
fix(tests): fix failing tests
1 parent 6f66882 commit d9a30d5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/components/ProjectInfo.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ const ProjectInfo = ({ pkg }: { pkg: JSONSchemaForNPMPackageJsonFiles }) => (
3131
{pkg.version && <DetailItem label="🔖 Version">{pkg.version}</DetailItem>}
3232
{pkg.author?.name && (
3333
<DetailItem label="👤 Author">
34-
<Link url={pkg.author?.url || ''}>{pkg.author.name}</Link>
34+
{pkg.author.name}
35+
{pkg.author.url && ` (${pkg.author.url})`}
3536
</DetailItem>
3637
)}
3738
{pkg.license && <DetailItem label="📄 License">{pkg.license}</DetailItem>}

tests/__snapshots__/apr.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ exports[`just works 1`] = `
77
│ 🎲 A randomly generated dummy package for testing purposes │
88
\x1B[90m──────────────────────────────────────────────────────────\x1B[39m │
99
\x1B[1m\x1B[32m🔖 Version\x1B[39m\x1B[22m: 1.2.3 │
10-
\x1B[1m\x1B[32m👤 Author\x1B[39m\x1B[22m: \x1B]8;;https://example.com\x07Test Developer\x1B]8;;\x07
10+
\x1B[1m\x1B[32m👤 Author\x1B[39m\x1B[22m: Test Developer (https://example.com)
1111
\x1B[1m\x1B[32m📄 License\x1B[39m\x1B[22m: Apache-2.0 │
1212
\x1B[1m\x1B[32m🏠 Homepage\x1B[39m\x1B[22m: https://github.com/test/dummy-package │
1313
\x1B[1m\x1B[32m🐛 Bugs\x1B[39m\x1B[22m: https://github.com/test/dummy-package/issues │

0 commit comments

Comments
 (0)