Andrew Stewart
2bd8c54b49
WIP on tests for Basestar class
2013-11-22 15:12:30 -08:00
Andrew Stewart
6c8af7b9e2
Remove unnecessary specs
2013-11-22 12:02:28 -08:00
Andrew Stewart
1cd5883a3f
Clean up tests
2013-11-11 11:28:37 -05:00
Andrew Stewart
88ab1a2d34
Properly organize supporting classes for tests
2013-11-11 11:09:42 -05:00
Andrew Stewart
b5a4854533
Add tests for Cylon#findRobotConnection
2013-11-08 17:33:29 -07:00
Andrew Stewart
b7add10cb4
Add tests for Cylon#findRobotDevice()
2013-11-08 17:16:17 -07:00
Andrew Stewart
b2f2d11a85
Add specs for sync and async versions of findRobot()
2013-11-08 15:04:50 -07:00
Andrew Stewart
d7b3e63afe
Test for Cylon#robots
2013-11-08 14:43:05 -07:00
Andrew Stewart
1778312e6c
Tests for Cylon#api
2013-11-08 10:29:17 -07:00
Andrew Stewart
da5cb27c21
The Future's So Bright, I Gotta Wear Shades
...
I apologize for this commit message but cylon-specs + this was just too perfect.
Anyways, have gotten Cylon robot specs working now. For some reason by the time
the spec runner gets around to running cylon.spec, inside cylon.js Robot has
been redefined to an empty object '{}'.
This resulted in a "TypeError: object is not a function on constructor" error.
So to solve this I moved the require() for 'robot' inside the Cylon.robot()
method. This shouldn't reload code thanks to Node's require cache, but will
properly assign Robot when instantiating a new one.
2013-11-08 10:03:16 -07:00
Andrew Stewart
716f675147
Remove unnecessary tests
2013-11-08 09:48:20 -07:00
Andrew Stewart
bb1388e879
Clearer and more representative testing of method proxying
2013-11-06 15:23:32 -08:00
deadprogram
bb4859d83d
Revise proxy to use objects instead of prototypes
2013-11-05 20:08:03 -08:00
Andrew Stewart
eda6f9db76
Namespace Device class
2013-11-04 12:21:28 -08:00
Andrew Stewart
ae666f67dd
Namespace Connection class
2013-11-04 12:13:40 -08:00
Andrew Stewart
9d48cba3cf
Namespace Robot class
2013-11-04 11:57:27 -08:00
deadprogram
504e51bd28
Can now attach users own functions to robot at will
2013-10-28 23:53:30 -07:00
Andrew Stewart
5da9ac3216
Fix test fails
2013-10-28 17:56:00 -07:00
Andrew Stewart
c33a99e4bd
Add tests for proxyFunctionsToObject
2013-10-28 12:07:56 -07:00
Andrew Stewart
c5cf70a5af
Remove irrelevant tests
2013-10-28 11:58:31 -07:00
deadprogram
79f02193ca
All green
2013-10-25 23:29:07 -07:00
deadprogram
e43bf8ad45
Works for arduino blink, with new async hotness
2013-10-25 23:27:39 -07:00
Edgar O Silva
838aa9065a
Added colors to example.
2013-10-24 16:27:37 -05:00