JimAnkrom/sway — pull request #28 by Dewb (2014-09-12 06:18:32+00:00)
Title: Create master gruntfile to install dependencies and run tests (#11)

Chose the simplest strategy that seemed like it would work. For the most part it does, run grunt in project root, all installed dependencies look good, UI tests succeed, but I get nine assertion failures in API tests. Cause is not immediately obvious to me.

Seven "cannot read property 'user-agent' of undefined" and two "cannot read property 'l' of undefined."

sway.server.test.js
✔ tests - Server_Exists
✔
✔
✖ tests - Server_createUser_ReturnsUser
✖ Cannot read property 'user-agent' of undefined
TypeError: Cannot read property 'user-agent' of undefined
at Object.module.exports.createUser (/Users/dewb/ah/sway/api/sway.auth.js:76:33)

...

sway.control.test.js
✔ tests - test_Control
✔
✔
✔ tests - control_send_reachesOSC
✔
✖ tests - test_Control_Submission_IsReturnedInDebug
✔
✖ Cannot read property 'l' of undefined
TypeError: Cannot read property 'l' of undefined
at Object.exports.tests.test_Control_Submission_IsReturnedInDebug (/Users/dewb/ah/sway/test/scripts/api/sway.control.test.js:59:40)