Great work on your project. All the logic seems to work really well, at least from playing around with the actual page.
However 2/9 of your tests are still failing! Specifically these ones, which relate to your addTodo function:
Should leave input argument unchanged
Should add an id to newObject
I could be wrong about this one but I think another test called 'test done property has been changed' doesn't actually test anything? It's just comparing two objects you have declared above, whereas I think the actual should be given by running the markTodo function on your toDoInput?
Presumably the markTodo function is working though, since you have nice effects when I tick the complete box on the actual page!
Hey team!
Great work on your project. All the logic seems to work really well, at least from playing around with the actual page.
However 2/9 of your tests are still failing! Specifically these ones, which relate to your addTodo function:
I could be wrong about this one but I think another test called 'test done property has been changed' doesn't actually test anything? It's just comparing two objects you have declared above, whereas I think the
actual
should be given by running the markTodo function on your toDoInput?Presumably the markTodo function is working though, since you have nice effects when I tick the complete box on the actual page!