To test the CSV export features of the TODO module.This will print all the TODOs in store along with the completed status to a file. This requires the use of fs module, a built-in Node.js module for working with the file system.
This test will do two things:
- confirm that the file exists in the first place, and
- then verify that it has the right contents
git clone
npm install
npm test