Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Branches - Xinran #31

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open

Branches - Xinran #31

wants to merge 18 commits into from

Conversation

gracexinran
Copy link

Inspiration Board

Congratulations! You're submitting your assignment!

Comprehension Questions

Question Answer
What is the flow of data from input on the form to being a new card on the board? Firstly input data, and update the state variables, then passing the new card data to parent component by calling addCardCallback function through props, then add the new card into card list
What function did you use to make the GET request from the API to get the list of cards? Why use that function? I used componentDidMount function to get the list of cards. This method is used for initial component creation and load external data from an API.
How do snapshot tests differ from unit tests? By using snapshot tests, we used the rendered html file as the snapshot file. We can easily get the future change by comparing the difference with the snapshot file. Unit tests are used to check if functions perform the functionality that they should perform.
What purpose does Enzyme serve in testing a React app? I saw it was wrote in App test but not sure how to use it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant