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

leaves - Natalie Tapias #17

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

Conversation

NatalieTapias
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? Once the form is submitted, the addCardCallBack() function is called, which invokes the addCard() function on Board.js. This is where the post request to the endpoint using axios occurs. Within this function, state is set to updated state which includes the new card data.
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() to wrap the GET request from the api. This is done because we want to trigger this function upon first render of the component.
How do snapshot tests differ from unit tests? Snapshot tests are useful when you wan to make sure that the UI does not change unexpectedly and are based on a "snapshot" in time. It is a tool that allows you to detect when your component changes. Unit tests verify correctness of software components during development. The snapshot will allow you to compare how the application changes over time, and whether or not the component matches a previously known snapshot of the same component, but won't necessarily say whether the component is operating correctly.
What purpose does Enzyme serve in testing a React app? Enzyme is a utility which allows us to assert, manipulate, and traverse the react components' output.

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