Let's improve our back-end test coverage a little bit and add some integration tests that cover both our model and controller logic. Write a test for the todos controller that exercises one of the CRUD operations. You'll have to mock the Express request/response objects somehow.
Let's improve our back-end test coverage a little bit and add some integration tests that cover both our model and controller logic. Write a test for the todos controller that exercises one of the CRUD operations. You'll have to mock the Express request/response objects somehow.