Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

Fallback to sponsor name if logo is missing #56

Merged
merged 3 commits into from Apr 27, 2016
Merged

Conversation

daytonn
Copy link

@daytonn daytonn commented Apr 27, 2016

Instead of rendering an empty string, we are now falling back to the SponsorName component
@kand @collin


it('renders the sponsor name', () => {
let types = subject.props.children.map((c) => c.type);
expect(types).to.contain(SponsorName);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test betrays a desire for enzyme ;)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

totally

@collin
Copy link
Contributor

collin commented Apr 27, 2016

👍

1 similar comment
@kand
Copy link
Contributor

kand commented Apr 27, 2016

👍

@daytonn daytonn merged commit 6501017 into master Apr 27, 2016
@daytonn daytonn deleted the fix-logo-only-fallback branch April 27, 2016 18:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants