cylon/spec/lib
Andrew Stewart 15c9b96333 Extract out Connection/Device initialization
Simple extraction out of Connection/Device initialization code inside
Robot.

This yields an interesting boon, however - this is now a valid Cylon
program:

    var Cylon = require('cylon');

    Cylon
      .robot()
      .connection({ name: 'loopback', adaptor: 'loopback' })
      .device({ name: 'ping', driver: 'ping' })
      .on('ready', function(bot) {
        console.log("Bot working!");

        every(1000, function() {
          console.log(bot.ping.ping());
        })
      });

    Cylon.start();

For those that prefer imperative programs with Cylon, this is a nice
syntax addition.
2014-11-20 08:43:08 -08:00
..
api Reorganize tests, under 'spec' directory now 2014-10-20 14:55:25 -07:00
io Reorganize tests, under 'spec' directory now 2014-10-20 14:55:25 -07:00
logger Not sure why these were classes to begin with 2014-10-24 14:02:03 -07:00
adaptor.spec.js Modifications, fix test suite 2014-11-11 11:41:23 -08:00
api.spec.js Reorganize tests, under 'spec' directory now 2014-10-20 14:55:25 -07:00
basestar.spec.js Fix broken test 2014-11-14 11:01:57 -08:00
connection.spec.js Modifications, fix test suite 2014-11-11 11:41:23 -08:00
cylon.spec.js Modifications, fix test suite 2014-11-11 11:41:23 -08:00
device.spec.js Modifications, fix test suite 2014-11-11 11:41:23 -08:00
digital-pin.spec.js Reorganize tests, under 'spec' directory now 2014-10-20 14:55:25 -07:00
driver.spec.js Refer to Adaptor instances as 'Connection' 2014-11-14 10:56:45 -08:00
logger.spec.js Move Logger configuration into Cylon#config 2014-10-28 15:53:03 -07:00
registry.spec.js Add logging for module registration 2014-11-05 14:26:18 -08:00
robot.spec.js Extract out Connection/Device initialization 2014-11-20 08:43:08 -08:00
utils.spec.js Reorganize tests, under 'spec' directory now 2014-10-20 14:55:25 -07:00