DLMedeiro / ToDo-React

ToDo List Application using React (Springboard Section 39.8)
https://dlmedeiro.github.io/ToDo-React/
0 stars 0 forks source link

ToDoList.test.js #7

Open DLMedeiro opened 2 years ago

DLMedeiro commented 2 years ago

File: ToDoList.test.js The addToDo function was created based on how the box maker testing was set up. (I was a little lost on how to dive into the testing for this, and have been using the box maker as a guide to create tests for the Todo App.)

Line 6: addToDo Function Question 1: How is the toDoList variable being used. Where is the data coming from and what is in it?

Line 55: Testing "Works when incorrect input is provided" Question 2: How do I set this up? Thinking I want to change the set up of the addToDo function to have more flexible inputs, but need help understanding the function a bit more.

DLMedeiro commented 2 years ago

Question 2 resolved with dd9c1001f4f58f9bc87edb406e0866b7afe63705

DLMedeiro commented 2 years ago

Response to Question 1

toDoList = the rendered object. It is an input into the addToDo function and is created within each of the test functions. toDo is then a parameter also used in the addToDo function