caseyvill/Project-Barbosa — pull request #3 by James-Firth (2014-02-26 08:45:59+00:00)
Title: SERVERSIDE TESTING!

app.js - added export so app could be used for testing. Fixed error where 404 pages actually responded with 200.
package.json - Added scripts & Dev Dependencies for easy installing/running :)
README.md - Reorganized the install list and added new section to explain how to run things
trip.js - now returns a 500 error with a null json string instead of the html error page.

test/app.js - very basic test to show how to do a GET test. Also shows that 404 now works.
test/mocha.opts - config file for mocha testing framework. "Slow" will need to be decided upon as a group. Have fun with reporters, they have a variety of options on the mocha website and I believe they're all installed already.

test/trip.js - first test shows a 'pending' test. ie one that isn't written yet.
- the second test shows how to do a POST request and expect JSON