Switch to Logger.debug for default work, add test for #start return val

This commit is contained in:
Andrew Stewart 2014-09-08 14:14:11 -07:00
parent f0d0e4b738
commit 3ec6c2717a
2 changed files with 5 additions and 1 deletions

View File

@ -79,7 +79,7 @@ var Robot = module.exports = function Robot(opts) {
this.work = opts.work || opts.play;
if (!this.work) {
this.work = function() { console.log("No work yet."); }
this.work = function() { Logger.debug("No work yet."); }
}
this.registerDefaults();

View File

@ -319,6 +319,10 @@ describe("Robot", function() {
it("emits the 'work' event", function() {
expect(robot.emit).to.be.calledWith("work")
});
it("returns the robot", function() {
expect(robot.start()).to.be.eql(robot);
});
});
describe("#startConnections", function() {