Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Conversation

@haleksan
Copy link

Added UI and unit tests for learning purposes.

haleksan pushed a commit that referenced this pull request May 15, 2019
Copy link

@Wiinterfell Wiinterfell left a comment

Choose a reason for hiding this comment

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

Few minor comments, but overall lgtm 🚀

(I think we don't need to commit package-lock.json as well 🤔 )


it('should render the given description', () => {
const { getByText } = render(<PetCard pet={petMock}/>);
expect(getByText("Fido is a good boy who loves long walks in the park, playing with his ball and licking faces. He's great with children and an absolute sweetheart.")).toBeInTheDocument();

Choose a reason for hiding this comment

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

Can we make a const value for the description, so we don't have to write it twice? :)

render() {
return (
<Card style={{ width: '18rem' }}>
<Card.Img variant="top" src={"https://source.unsplash.com/collection/212527/200x200/?sig=" + Math.floor(Math.random() * 100)} />

Choose a reason for hiding this comment

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

Can we use photos from the API?

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.

4 participants