facn2 / Week2-Ba6e5-Developers-TodoList

ToDoList
https://facn2.github.io/Week2-Ba6e5-Developers-TodoList/
2 stars 1 forks source link

Mock test data looks a bit messy #29

Open m4v15 opened 7 years ago

m4v15 commented 7 years ago

Could store all the different data (todo lists, individual todos) you might use for your tests in a file call mock-data.js or something, then export them as an object, would make you code much more readable.

mattlub commented 7 years ago

100% agree, the tests would be much more readable if they didn't have big objects being defined inside them. Also, you could reuse the same test objects for different tests.