Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ describe('<MarketplaceProjectCard>', () => {
expect(banner.innerHTML).toContain('https://cdn/banner.png');
});

it('falls back to placeholder URL when no logo', () => {
it('falls back to initials when no logo', () => {
render(<MarketplaceProjectCard name="Sphere Demo" logoUrl={null} bannerUrl={null} />);
const img = screen.getByAltText('Sphere Demo') as HTMLImageElement;
expect(img.src).toContain('placehold.co');
// No logo → ProjectLogo renders the name's monogram, not an <img>.
expect(screen.getByText('SD')).toBeInTheDocument();
expect(screen.queryByAltText('Sphere Demo')).not.toBeInTheDocument();
});

it('renders rating and user count when provided', () => {
Expand Down
Loading